[metacity/wip/test-3-20: 2/10] window: clear the frame borders before calculating the unfullscreen rect



commit 4b1a0d57cb432a1fbf7017cf370c57ce15c0e3f1
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Jun 23 17:05:27 2015 -0700

    window: clear the frame borders before calculating the unfullscreen rect
    
    Going from fullscreen to unfullscreen involves a frame border size, so
    in order to properly interpret the saved rect size, we need to make sure
    that the frame borders are fully up to date.

 src/core/window.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index f9dc5b6..61e68f9 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -2908,6 +2908,8 @@ meta_window_unmake_fullscreen (MetaWindow  *window)
       window->fullscreen = FALSE;
       target_rect = window->saved_rect;
 
+      meta_window_frame_size_changed (window);
+
       /* Window's size hints may have changed while maximized, making
        * saved_rect invalid.  #329152
        */


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