[mutter] meta_window_move_resize_internal: handle border size changes



commit b7e62d3ca5c3012c0ffdfec23bdf331866c8ca07
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Fri Dec 13 13:53:54 2013 -0500

    meta_window_move_resize_internal: handle border size changes
    
    Initial placement during meta_window_constrain() can result in changes
    to the borders, so we need to recompute our border sizes after
    constraining. This fixes incorrect window borders on
    initially maximized windows.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720417

 src/core/window.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index a3ba385..cf5cd7d 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -4983,6 +4983,11 @@ meta_window_move_resize_internal (MetaWindow          *window,
                          &old_rect,
                          &new_rect);
 
+  /* meta_window_constrain() might have maximized the window after placement,
+   * changing the borders.
+   */
+  meta_frame_calc_borders (window->frame, &borders);
+
   w = new_rect.width;
   h = new_rect.height;
   root_x_nw = new_rect.x;


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