From 4f567598327e9fdc50eec37ef286c62415a6677f Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Sat, 30 Jan 2021 11:21:39 +0000 Subject: window: Do not render shadows on left/right tiled windows This pull request prevents shadows being rendered for left and right side titled windows. This behaviour is consistent with maximised windows, which also do not render shadows. The rationale for this change is so that when two windows are titled along side each other, it prevents central shadows bleeding into the touching points of the windows. metacity-theme-x.xml has provision to style left/right titled windows. This patch makes it possible to to create window themes that present clean side-by-side tiled windows. --- src/core/window.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/core/window.c') diff --git a/src/core/window.c b/src/core/window.c index b301dbd9..add00789 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -8855,6 +8855,18 @@ meta_window_is_maximized (MetaWindow *window) return META_WINDOW_MAXIMIZED (window); } +gboolean +meta_window_is_tiled_left (MetaWindow *window) +{ + return META_WINDOW_TILED_LEFT (window); +} + +gboolean +meta_window_is_tiled_right (MetaWindow *window) +{ + return META_WINDOW_TILED_RIGHT (window); +} + /** * meta_window_is_client_decorated: * -- cgit v1.2.1