commit 7c9f127

Michael Forney  ·  2015-05-17 19:19:11 +0000 UTC
parent e5fd71a
pointer: Only allow client with focus to change cursor
1 files changed,  +3, -0
+3, -0
 1@@ -294,6 +294,9 @@ static void set_cursor(struct wl_client * client,
 2     struct pointer * pointer = wl_resource_get_user_data(resource);
 3     struct surface * surface;
 4 
 5+    if (!pointer->focus.resource || client != wl_resource_get_client(pointer->focus.resource))
 6+        return;
 7+
 8     if (pointer->cursor.surface)
 9         wl_list_remove(&pointer->cursor.destroy_listener.link);
10