compositor: Use pointer_cursor_surface_configure() in wl_pointer.set_cursor
authorKristian Høgsberg <krh@bitplanet.net>
Mon, 13 Aug 2012 22:14:15 +0000 (18:14 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 13 Aug 2012 22:18:32 +0000 (18:18 -0400)
commitd3800e4788264c007da387f6edaff538ad78ce07
treea0a3d2335b2a194577d84756e648c9fe2035e999
parent6cef0092722732896b5f9a9f793de1487b1219eb
compositor: Use pointer_cursor_surface_configure() in wl_pointer.set_cursor

This way we map the surface if it currently isn't mapped and avoid
duplicating some of the code already in pointer_cursor_surface_configure().
Without this, the cursor code relied on a wl_surface.attach() to show the
new pointer surface.  If we're not changing the cursor buffer, we don't
get that, but we still need to map the cursor.
src/compositor.c