[gtk+/wip/csd: 10/11] wayland: Only update position if the with_move flag is set



commit 91a0acd3e032903fada32babdb128143b6732e4d
Author: Rob Bradford <rob linux intel com>
Date:   Fri Apr 20 17:57:33 2012 +0100

    wayland: Only update position if the with_move flag is set
    
    This was causing the combobox popup to be moved to zero zero when just the
    size was asserted.

 gdk/wayland/gdkwindow-wayland.c |   19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index 3448bbc..48859cd 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -808,14 +808,17 @@ gdk_window_wayland_restack_toplevel (GdkWindow *window,
 
 static void
 gdk_window_wayland_move_resize (GdkWindow *window,
-				gboolean   with_move,
-				gint       x,
-				gint       y,
-				gint       width,
-				gint       height)
+                                gboolean   with_move,
+                                gint       x,
+                                gint       y,
+                                gint       width,
+                                gint       height)
 {
-  window->x = x;
-  window->y = y;
+  if (with_move)
+    {
+      window->x = x;
+      window->y = y;
+    }
 
   /* If this function is called with width and height = -1 then that means
    * just move the window - don't update its size



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