summaryrefslogtreecommitdiff
path: root/src/wayland/meta-wayland-pointer.h
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2017-05-31 17:24:07 +0800
committerJonas Ådahl <jadahl@gmail.com>2017-06-01 12:46:32 +0800
commitb19e4592df42fd4bf7440e785a7fc58fe8378c3c (patch)
treee767a48459263bd391e587e555e33fe8a4dd6b71 /src/wayland/meta-wayland-pointer.h
parente9c9ee844c0a898689d9ae7e982ccced403a1b1b (diff)
downloadmutter-b19e4592df42fd4bf7440e785a7fc58fe8378c3c.tar.gz
wayland/pointer: Use glib signals tracking focus surface
Use the "destroy" MetaWaylandSurface signal instead of the wl_resource destroy signal for tracking the lifetime of the surface with pointer focus. As unsetting the focus may have side effects due to handlers of the "focus-surface-changed" signal, connect the signal after the default handler to make sure other clean up facilities have the chance deal with the surface destruction before we try to unset the focus. https://bugzilla.gnome.org/show_bug.cgi?id=783113
Diffstat (limited to 'src/wayland/meta-wayland-pointer.h')
-rw-r--r--src/wayland/meta-wayland-pointer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wayland/meta-wayland-pointer.h b/src/wayland/meta-wayland-pointer.h
index 547cd5610..9f55590e9 100644
--- a/src/wayland/meta-wayland-pointer.h
+++ b/src/wayland/meta-wayland-pointer.h
@@ -71,7 +71,7 @@ struct _MetaWaylandPointer
GHashTable *pointer_clients;
MetaWaylandSurface *focus_surface;
- struct wl_listener focus_surface_listener;
+ gulong focus_surface_destroyed_handler_id;
guint32 focus_serial;
guint32 click_serial;