wayland: fix xdg_surface test in move/resize drag
authorOlivier Fourdan <ofourdan@redhat.com>
Fri, 2 Jun 2017 13:54:50 +0000 (15:54 +0200)
committerOlivier Fourdan <ofourdan@redhat.com>
Fri, 2 Jun 2017 13:54:50 +0000 (15:54 +0200)
commit2d41d772d76a624b6485763896c5801c52b550a3
tree96c0a4129e94e9d74dbd4731f9aea73ac818e9c7
parentc94f40b893895602f2e487a98f82332dd148f6d8
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