summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/window.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/window.c b/src/core/window.c
index e7e0fb9e..1ff745a9 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -2680,6 +2680,8 @@ meta_window_maximize (MetaWindow *window,
/* move_resize with new maximization constraints
*/
meta_window_queue(window, META_QUEUE_MOVE_RESIZE);
+
+ meta_compositor_maximize_window (window->display->compositor, window);
}
}
@@ -2848,6 +2850,8 @@ meta_window_unmaximize (MetaWindow *window,
recalc_window_features (window);
set_net_wm_state (window);
+
+ meta_compositor_unmaximize_window (window->display->compositor, window);
}
}
@@ -8368,6 +8372,12 @@ meta_window_get_xwindow (MetaWindow *window)
return window->xwindow;
}
+gboolean
+meta_window_is_maximized (MetaWindow *window)
+{
+ return META_WINDOW_MAXIMIZED (window);
+}
+
/**
* meta_window_is_client_decorated:
*