From d74b0d5be85f61327bf48cfe27dd7eb928544fef Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Tue, 23 Jun 2015 17:05:27 -0700 Subject: [PATCH] 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 file changed, 2 insertions(+) diff --git a/src/core/window.c b/src/core/window.c index aec61db27..7ea27344c 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -3241,6 +3241,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 */