summaryrefslogtreecommitdiff
path: root/src/include/boxes.h
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/include/boxes.h
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/include/boxes.h')
-rw-r--r--src/include/boxes.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/include/boxes.h b/src/include/boxes.h
index 87cc68f2..fabacb1e 100644
--- a/src/include/boxes.h
+++ b/src/include/boxes.h
@@ -27,6 +27,13 @@
#include <glib.h>
#include "common.h"
+typedef enum
+{
+ META_EDGE_WINDOW,
+ META_EDGE_XINERAMA,
+ META_EDGE_SCREEN
+} MetaEdgeType;
+
typedef struct _MetaRectangle MetaRectangle;
struct _MetaRectangle
{
@@ -41,6 +48,7 @@ struct _MetaStrut
{
MetaRectangle rect;
MetaSide side;
+ MetaEdgeType edge;
};
#define BOX_LEFT(box) ((box).x) /* Leftmost pixel of rect */
@@ -55,13 +63,6 @@ typedef enum
FIXED_DIRECTION_Y = 1 << 1,
} FixedDirections;
-typedef enum
-{
- META_EDGE_WINDOW,
- META_EDGE_XINERAMA,
- META_EDGE_SCREEN
-} MetaEdgeType;
-
typedef struct _MetaEdge MetaEdge;
struct _MetaEdge
{
@@ -158,7 +159,8 @@ void meta_rectangle_resize_with_gravity (const MetaRectangle *old_rect,
*/
GList* meta_rectangle_get_minimal_spanning_set_for_region (
const MetaRectangle *basic_rect,
- const GSList *all_struts);
+ const GSList *all_struts,
+ gboolean skip_middle_struts);
/* Expand all rectangles in region by the given amount on each side */
GList* meta_rectangle_expand_region (GList *region,