diff options
author | Victor Kareh <[email protected]> | 2019-05-22 12:04:04 -0400 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2019-06-05 10:49:37 -0400 |
commit | fb55e68268d2254a536aa88c1c23ed3c43d7b2eb (patch) | |
tree | 1a00062078c08fdabfde123deab02dc25b606725 /src/ui | |
parent | a6a4de7a32bb0bdc2d06597dd92d6e389039f7d1 (diff) | |
download | marco-fb55e68268d2254a536aa88c1c23ed3c43d7b2eb.tar.bz2 marco-fb55e68268d2254a536aa88c1c23ed3c43d7b2eb.tar.xz |
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
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/frames.c | 10 | ||||
-rw-r--r-- | src/ui/theme.c | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/src/ui/frames.c b/src/ui/frames.c index fff3b684..5908d991 100644 --- a/src/ui/frames.c +++ b/src/ui/frames.c @@ -799,6 +799,16 @@ meta_ui_frame_get_borders (MetaFrames *frames, borders->visible.bottom *= scale; borders->visible.left *= scale; borders->visible.right *= scale; + + borders->invisible.top *= scale; + borders->invisible.bottom *= scale; + borders->invisible.left *= scale; + borders->invisible.right *= scale; + + borders->total.top *= scale; + borders->total.bottom *= scale; + borders->total.left *= scale; + borders->total.right *= scale; } void diff --git a/src/ui/theme.c b/src/ui/theme.c index 66cd4be8..b08b3903 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 |