[metacity] window: clear frame_bounds region earlier



commit 90ab87cb90c88097394d216998eb17acc910cd21
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sun Jul 2 22:59:21 2017 +0300

    window: clear frame_bounds region earlier
    
    Clear region before calling meta_compositor_sync_window_geometry
    function, otherwise compositor will use cached region.

 src/core/window.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 9354813..ccee7ae 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -3910,6 +3910,12 @@ meta_window_move_resize_internal (MetaWindow          *window,
   else if (is_user_action)
     save_user_window_placement (window);
 
+  if (frame_shape_changed && window->frame_bounds)
+    {
+      cairo_region_destroy (window->frame_bounds);
+      window->frame_bounds = NULL;
+    }
+
   if (need_move_frame || need_resize_frame ||
       need_move_client || need_resize_client)
     {
@@ -3939,12 +3945,6 @@ meta_window_move_resize_internal (MetaWindow          *window,
    *   b) all constraints are obeyed by window->rect and frame->rect
    */
 
-  if (frame_shape_changed && window->frame_bounds)
-    {
-      cairo_region_destroy (window->frame_bounds);
-      window->frame_bounds = NULL;
-    }
-
   meta_window_foreach_transient (window, maybe_move_attached_dialog, NULL);
 }
 


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