From 291bcbf2af47016863ddf05271dae1c85a3cefd3 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Wed, 22 May 2019 12:04:04 -0400 Subject: MetaFrameBorders: add invisible borders This just adds the invisible border field and populates it with data but doesn't use it in any way. Based on mutter commit: https://git.gnome.org/browse/mutter/commit/?id=a1a2527c75ab0c135f89396ea036336fb67ac538 upstream commit: https://gitlab.gnome.org/GNOME/metacity/commit/bf02c7c3 --- src/ui/theme.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/ui/theme.c') diff --git a/src/ui/theme.c b/src/ui/theme.c index f4de969f..2434f233 100644 --- a/src/ui/theme.c +++ b/src/ui/theme.c @@ -433,6 +433,16 @@ meta_frame_layout_get_borders (const MetaFrameLayout *layout, meta_frame_borders_clear (borders); return; } + + borders->invisible.left = layout->invisible_border.left; + borders->invisible.right = layout->invisible_border.right; + borders->invisible.bottom = layout->invisible_border.bottom; + borders->invisible.top = layout->invisible_border.top; + + borders->total.left = borders->invisible.left + borders->visible.left; + borders->total.right = borders->invisible.right + borders->visible.right; + borders->total.bottom = borders->invisible.bottom + borders->visible.bottom; + borders->total.top = borders->invisible.top + borders->visible.top; } static MetaButtonType -- cgit v1.2.1