compositor: Use wl_pointer_set_current to cleanup after surface destruction

This API call handles setting the current surface on the wl_pointer and also
maintaining a destroy notification to monitor that surface for destruction.

This is part of the fix for: https://bugzilla.gnome.org/show_bug.cgi?id=696946
This commit is contained in:
Rob Bradford 2013-04-03 15:21:55 +01:00 committed by Kristian Høgsberg
parent 319b91b97a
commit 91ae483ab9

View File

@ -942,7 +942,7 @@ weston_device_repick(struct weston_seat *seat)
if (&surface->surface != pointer->current) {
interface = pointer->grab->interface;
pointer->current = &surface->surface;
wl_pointer_set_current(pointer, &surface->surface);
interface->focus(pointer->grab, &surface->surface,
pointer->current_x,
pointer->current_y);