diff options
author | Martin Wimpress <[email protected]> | 2021-01-30 11:21:39 +0000 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-06-04 17:30:50 +0200 |
commit | 4f567598327e9fdc50eec37ef286c62415a6677f (patch) | |
tree | ba5d95fb5ab620461969712deebde6d5a0faa98e /src/include/window.h | |
parent | 60e6fbfb093d63c46ca8e77750c54f31c9780c1c (diff) | |
download | marco-4f567598327e9fdc50eec37ef286c62415a6677f.tar.bz2 marco-4f567598327e9fdc50eec37ef286c62415a6677f.tar.xz |
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.
Diffstat (limited to 'src/include/window.h')
-rw-r--r-- | src/include/window.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/window.h b/src/include/window.h index 6dece7d3..7d749c00 100644 --- a/src/include/window.h +++ b/src/include/window.h @@ -45,6 +45,8 @@ Window meta_window_get_xwindow (MetaWindow *window); MetaWindow *meta_window_get_transient_for (MetaWindow *window); gboolean meta_window_is_maximized (MetaWindow *window); cairo_region_t *meta_window_get_frame_bounds (MetaWindow *window); +gboolean meta_window_is_tiled_left (MetaWindow *window); +gboolean meta_window_is_tiled_right (MetaWindow *window); G_END_DECLS |