[mutter] window: Notify about size-change when tiling



commit 270da95cbcbfd30094f750f18c67b98d413d58c8
Author: Alessandro Bono <abono gnome org>
Date:   Sat Sep 24 21:47:35 2016 +0200

    window: Notify about size-change when tiling
    
    Call meta_compositor_size_change_window while tiling in order
    to emit the size-change signal. Since the untiling action is
    considered a unmaximize size change, treat tiling as a maximize
    size change for consistency.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=782968

 src/core/window.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index a7b91e0..61e4a1e 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -2890,6 +2890,7 @@ void
 meta_window_tile (MetaWindow *window)
 {
   MetaMaximizeFlags directions;
+  MetaRectangle old_frame_rect, old_buffer_rect;
 
   /* Don't do anything if no tiling is requested */
   if (window->tile_mode == META_TILE_NONE)
@@ -2903,6 +2904,13 @@ meta_window_tile (MetaWindow *window)
   meta_window_maximize_internal (window, directions, NULL);
   meta_screen_update_tile_preview (window->screen, FALSE);
 
+  meta_window_get_frame_rect (window, &old_frame_rect);
+  meta_window_get_buffer_rect (window, &old_buffer_rect);
+
+  meta_compositor_size_change_window (window->display->compositor, window,
+                                      META_SIZE_CHANGE_MAXIMIZE,
+                                      &old_frame_rect, &old_buffer_rect);
+
   meta_window_move_resize_now (window);
 
   if (window->frame)


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