summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-10-24 13:38:54 +0200
committerinfirit <[email protected]>2014-10-24 15:40:43 +0200
commit470fed7e80a741e43e53f2e2186f9470db132983 (patch)
tree3c364aae98f80d74e073cda5da26e5fa444bec57 /src/core
parent13741f524e5f8b780a96872f534237186fa78741 (diff)
downloadmarco-470fed7e80a741e43e53f2e2186f9470db132983.tar.bz2
marco-470fed7e80a741e43e53f2e2186f9470db132983.tar.xz
don't show shadow for maximized windows
based on metacity commit: 72d1c6a6b9a85391444bb5ff8c5de1e3aabd3fd9 From: Alberts Muktupāvels <[email protected]>
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:
*