diff options
author | 2016-03-31 13:51:27 +0200 | |
---|---|---|
committer | 2016-03-31 13:51:27 +0200 | |
commit | 66e8b4d5de0fed09c48b4fb254ac32b165fddc07 (patch) | |
tree | 8a803871687147b05669d5c1d4e125ccf0a7e4ff /sway | |
parent | Merge pull request #560 from mikkeloscar/add-new_window-new_float (diff) | |
download | sway-66e8b4d5de0fed09c48b4fb254ac32b165fddc07.tar.gz sway-66e8b4d5de0fed09c48b4fb254ac32b165fddc07.tar.zst sway-66e8b4d5de0fed09c48b4fb254ac32b165fddc07.zip |
Correctly reset border geometry
Diffstat (limited to 'sway')
-rw-r--r-- | sway/layout.c | 4 |
1 files 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) { | |||
469 | } | 469 | } |
470 | 470 | ||
471 | if (swayc_is_fullscreen(container)) { | 471 | if (swayc_is_fullscreen(container)) { |
472 | container->border_geometry = (const struct wlc_geometry){0}; | 472 | container->border_geometry = wlc_geometry_zero; |
473 | container->title_bar_geometry = (const struct wlc_geometry){0}; | 473 | container->title_bar_geometry = wlc_geometry_zero; |
474 | } else if (container->is_floating) { // allocate border for floating window | 474 | } else if (container->is_floating) { // allocate border for floating window |
475 | update_border_geometry_floating(container, &geometry); | 475 | update_border_geometry_floating(container, &geometry); |
476 | } else if (!container->is_floating) { // allocate border for titled window | 476 | } else if (!container->is_floating) { // allocate border for titled window |