summaryrefslogtreecommitdiff
path: root/src/core/testboxes.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2021-04-10 16:37:40 +0200
committerraveit65 <[email protected]>2021-06-07 20:09:03 +0200
commit3ed0ddb242a4804cd7fcfcfcf39a47766eaa816d (patch)
treeb11f566e6c4f90db6a1868c834c6d84ca5dd15a7 /src/core/testboxes.c
parent4e4fd6c512423b16640914b33192a32f290b0ef1 (diff)
downloadmarco-3ed0ddb242a4804cd7fcfcfcf39a47766eaa816d.tar.bz2
marco-3ed0ddb242a4804cd7fcfcfcf39a47766eaa816d.tar.xz
window: add support for _GNOME_WM_STRUT_AREA
In addition to existing properties use also new _GNOME_WM_STRUT_AREA property that allows creating struts between monitors. https://mail.gnome.org/archives/wm-spec-list/2018-December/msg00000.html https://gitlab.freedesktop.org/xdg/xdg-specs/merge_requests/22 origin commit: https://gitlab.gnome.org/GNOME/metacity/commit/922de13
Diffstat (limited to 'src/core/testboxes.c')
-rw-r--r--src/core/testboxes.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/testboxes.c b/src/core/testboxes.c
index fecca881..ecf35f2f 100644
--- a/src/core/testboxes.c
+++ b/src/core/testboxes.c
@@ -66,6 +66,7 @@ new_meta_strut (int x, int y, int width, int height, int side)
temporary = g_new (MetaStrut, 1);
temporary->rect = meta_rect(x, y, width, height);
temporary->side = side;
+ temporary->edge = META_EDGE_SCREEN;
return temporary;
}
@@ -294,7 +295,10 @@ get_screen_region (int which)
ret = NULL;
struts = get_strut_list (which);
- ret = meta_rectangle_get_minimal_spanning_set_for_region (&basic_rect, struts);
+ ret = meta_rectangle_get_minimal_spanning_set_for_region (&basic_rect,
+ struts,
+ FALSE);
+
free_strut_list (struts);
return ret;