wayland: Improve implicit grab serial retrieval

Desktop / GNOME / GTK - Carlos Garnacho [gnome.org] - 26 August 2014 06:32 UTC

_gdk_wayland_device_get_button_press_serial() has been replaced by _gdk_wayland_device_get_implicit_grab_serial(), which takes a touch/pointer event and figures out the relevant serial, and _gdk_wayland_device_get_last_implicit_grab_serial() which returns the most recent serial.

The button press serial was currently used when operating popping up xdg_shell/surface popups and window menus, so this is now touch aware, of some sort.

https://bugzilla.gnome.org/show_bug.cgi?id=734374

537ff9f wayland: Improve implicit grab serial retrieval
gdk/wayland/gdkdevice-wayland.c | 46 ++++++++++++++++++++++++++++++++++++--
gdk/wayland/gdkprivate-wayland.h | 5 ++++-
gdk/wayland/gdkwindow-wayland.c | 20 +++++++++--------
3 files changed, 59 insertions(+), 12 deletions(-)

Upstream: git.gnome.org


  • Share