From 66e8b4d5de0fed09c48b4fb254ac32b165fddc07 Mon Sep 17 00:00:00 2001 From: Mikkel Oscar Lyderik Date: Thu, 31 Mar 2016 13:51:27 +0200 Subject: [PATCH] Correctly reset border geometry --- sway/layout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sway/layout.c b/sway/layout.c index 3f271caf..180aafa0 100644 --- a/sway/layout.c +++ b/sway/layout.c @@ -469,8 +469,8 @@ void update_geometry(swayc_t *container) { } if (swayc_is_fullscreen(container)) { - container->border_geometry = (const struct wlc_geometry){0}; - container->title_bar_geometry = (const struct wlc_geometry){0}; + container->border_geometry = wlc_geometry_zero; + container->title_bar_geometry = wlc_geometry_zero; } else if (container->is_floating) { // allocate border for floating window update_border_geometry_floating(container, &geometry); } else if (!container->is_floating) { // allocate border for titled window