From d05c1f4677ab3dda3ad2b5964a554aec8611fdcc Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Tue, 21 May 2019 13:15:48 -0400 Subject: MetaFrameBorders: Add meta_frame_borders_clear Just a quick little commit to help clean things up for when we add invisible borders. Additionally, do a little housekeeping in preview-widget as well. https://bugzilla.gnome.org/show_bug.cgi?id=644930 NOTE: Patch copied from metacity and adapted for marco. upstream commit: https://gitlab.gnome.org/GNOME/metacity/commit/7d519b3f --- src/ui/ui.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/ui/ui.c') diff --git a/src/ui/ui.c b/src/ui/ui.c index e7993625..cc26451e 100644 --- a/src/ui/ui.c +++ b/src/ui/ui.c @@ -685,10 +685,7 @@ meta_ui_theme_get_frame_borders (MetaUI *ui, } else { - borders->visible.top = 0; - borders->visible.bottom = 0; - borders->visible.left = 0; - borders->visible.right = 0; + meta_frame_borders_clear (borders); } if (style != NULL) -- cgit v1.2.1