[PATCH weston] compositor: Use wl_pointer_set_current to cleanup after surface destruction

Rob Bradford robert.bradford at intel.com
Wed Apr 3 07:21:55 PDT 2013


From: Rob Bradford <rob at linux.intel.com>

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
---
 src/compositor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compositor.c b/src/compositor.c
index 1617d96..c14f1cd 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -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);
-- 
1.8.1.4



More information about the wayland-devel mailing list