summaryrefslogtreecommitdiff
path: root/src/ui/frames.c
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2019-05-22 12:04:04 -0400
committerraveit65 <[email protected]>2019-06-16 18:12:44 +0200
commit291bcbf2af47016863ddf05271dae1c85a3cefd3 (patch)
tree6f72a5daed97945d9e830a0b0ac2366542d86d17 /src/ui/frames.c
parent0301640c98e3ff35cb5798c23e3062048940832e (diff)
downloadmarco-291bcbf2af47016863ddf05271dae1c85a3cefd3.tar.bz2
marco-291bcbf2af47016863ddf05271dae1c85a3cefd3.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/frames.c')
-rw-r--r--src/ui/frames.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ui/frames.c b/src/ui/frames.c
index e1a30be7..0d312c0f 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