diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2017-06-02 15:54:50 +0200 |
---|---|---|
committer | Olivier Fourdan <ofourdan@redhat.com> | 2017-06-02 16:19:00 +0200 |
commit | 24f9d2909393b8a2267e30d3f8b6e31d6aaee850 (patch) | |
tree | dfbd9b9cca9b4de5c5938a61a5ed80d49d4ac21b /gdk | |
parent | 08aade4b7c4ff011402aada4270a6c4260d30958 (diff) | |
download | gtk+-24f9d2909393b8a2267e30d3f8b6e31d6aaee850.tar.gz |
wayland: fix xdg_surface test in move/resize drag
begin_resize_drag() and begin_move_drag() check for xdg_surface being
not null, but those apply on xdg_toplevel so they should check for
xdg_toplevel being non-null instead.
https://bugzilla.gnome.org/show_bug.cgi?id=781945
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/wayland/gdkwindow-wayland.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c index 6e78de860b..cefb53969b 100644 --- a/gdk/wayland/gdkwindow-wayland.c +++ b/gdk/wayland/gdkwindow-wayland.c @@ -3399,7 +3399,7 @@ gdk_wayland_window_begin_resize_drag (GdkWindow *window, impl = GDK_WINDOW_IMPL_WAYLAND (window->impl); - if (!impl->display_server.xdg_surface) + if (!impl->display_server.xdg_toplevel) return; serial = _gdk_wayland_seat_get_last_implicit_grab_serial (gdk_device_get_seat (device), @@ -3436,7 +3436,7 @@ gdk_wayland_window_begin_move_drag (GdkWindow *window, impl = GDK_WINDOW_IMPL_WAYLAND (window->impl); - if (!impl->display_server.xdg_surface) + if (!impl->display_server.xdg_toplevel) return; serial = _gdk_wayland_seat_get_last_implicit_grab_serial (gdk_device_get_seat (device), |