From: Carlos Garnacho Date: Thu, 5 Oct 2017 23:06:03 +0000 (+0200) Subject: gdk/wayland: Avoid idempotent wl_subsurface.set_position calls X-Git-Tag: archive/raspbian/3.22.24-2+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b4b6a77d965f63556db7ec5ecdb4e0140bd0ee97;p=gtk%2B3.0.git gdk/wayland: Avoid idempotent wl_subsurface.set_position calls These may not result on wl_surface.frame callbacks, yet we do trigger a frame clock tick that would get stuck on the lack of such callback. https://bugzilla.gnome.org/show_bug.cgi?id=784314 https://launchpad.net/bugs/1719043 https://bugs.debian.org/875826 Gbp-Pq: Name 0004-fix-gtkentry-wayland-regression.patch --- diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c index c87d6d9ce7..1303c8a995 100644 --- a/gdk/wayland/gdkwindow-wayland.c +++ b/gdk/wayland/gdkwindow-wayland.c @@ -2663,7 +2663,8 @@ gdk_window_wayland_move_resize (GdkWindow *window, if (with_move) { /* Each toplevel has in its own "root" coordinate system */ - if (GDK_WINDOW_TYPE (window) != GDK_WINDOW_TOPLEVEL) + if (GDK_WINDOW_TYPE (window) != GDK_WINDOW_TOPLEVEL && + (window->x != x || window->y != y)) { window->x = x; window->y = y;