[gtk+/gtk-3-22] wayland: fix xdg_surface test in move/resize drag



commit 2d41d772d76a624b6485763896c5801c52b550a3
Author: Olivier Fourdan <ofourdan redhat com>
Date:   Fri Jun 2 15:54:50 2017 +0200

    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

 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 71e2182..d834666 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -3457,7 +3457,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),
@@ -3494,7 +3494,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),


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]