[gtk+/gtk-3-22] gdk/wayland: Avoid idempotent	wl_subsurface.set_position calls
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gtk+/gtk-3-22] gdk/wayland: Avoid idempotent	wl_subsurface.set_position calls
- Date: Mon, 16 Oct 2017 09:29:55 +0000 (UTC)
commit 8aa6d59b7a214ba03a83bcae8c43712f8e402927
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Oct 6 01:06:03 2017 +0200
    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
 gdk/wayland/gdkwindow-wayland.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index c87d6d9..1303c8a 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;
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]