summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Bono <abono@gnome.org>2016-09-24 21:47:35 +0200
committerAlessandro Bono <abono@gnome.org>2017-05-24 09:51:29 +0200
commit270da95cbcbfd30094f750f18c67b98d413d58c8 (patch)
treeb7bf55f1d4ef13fadaf0b179515e3e6b7d2c8895
parent76198e0b3b93c05de39536698758ac0485deea49 (diff)
downloadmutter-270da95cbcbfd30094f750f18c67b98d413d58c8.tar.gz
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
-rw-r--r--src/core/window.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/window.c b/src/core/window.c
index a7b91e001..61e4a1eef 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)