[gtk+/wip/garnacho/dnd-grab: 11/13] wayland: Unset button modifiers on pointer enter
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/garnacho/dnd-grab: 11/13] wayland: Unset button modifiers on pointer enter
- Date: Mon, 18 Jan 2016 23:01:42 +0000 (UTC)
commit 9038313a1a736ff125131e4398477ac355fe7554
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Jan 18 13:31:35 2016 +0100
wayland: Unset button modifiers on pointer enter
Due to implicit grabs, we basically can guarantee that the pointer
won't have any buttons pressed at the time of wl_pointer.enter.
Seems like a good place to unset any button modifiers that might
have been left stale by compositor grabs.
gdk/wayland/gdkdevice-wayland.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gdk/wayland/gdkdevice-wayland.c b/gdk/wayland/gdkdevice-wayland.c
index fd2925c..cf98849 100644
--- a/gdk/wayland/gdkdevice-wayland.c
+++ b/gdk/wayland/gdkdevice-wayland.c
@@ -1072,6 +1072,8 @@ pointer_handle_enter (void *data,
device->pointer_focus = wl_surface_get_user_data(surface);
g_object_ref(device->pointer_focus);
+ device->button_modifiers = 0;
+
device->surface_x = wl_fixed_to_double (sx);
device->surface_y = wl_fixed_to_double (sy);
device->enter_serial = serial;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]