[mutter/wayland] window: Don't sync window geometry when we haven't shown it yet



commit 43a409dec4092f41c6eb0ded55853e2d9980f3d4
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Mar 18 18:55:32 2014 -0400

    window: Don't sync window geometry when we haven't shown it yet

 src/core/window.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 38aaf11..480aa3d 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -4970,9 +4970,10 @@ meta_window_move_resize_internal (MetaWindow          *window,
                   newx, newy, window->rect.width, window->rect.height,
                   window->user_rect.x, window->user_rect.y,
                   window->user_rect.width, window->user_rect.height);
-      meta_compositor_sync_window_geometry (window->display->compositor,
-                                            window,
-                                            did_placement);
+      if (window->visible_to_compositor)
+        meta_compositor_sync_window_geometry (window->display->compositor,
+                                              window,
+                                              did_placement);
     }
   else
     {


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