diff options
-rw-r--r-- | sway/layout.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sway/layout.c b/sway/layout.c index 5081724a..e89402ed 100644 --- a/sway/layout.c +++ b/sway/layout.c | |||
@@ -375,10 +375,12 @@ void update_geometry(swayc_t *container) { | |||
375 | } | 375 | } |
376 | }; | 376 | }; |
377 | if (swayc_is_fullscreen(container)) { | 377 | if (swayc_is_fullscreen(container)) { |
378 | swayc_t *output = swayc_parent_by_type(container, C_OUTPUT); | ||
379 | const struct wlc_size *size = wlc_output_get_resolution(output->handle); | ||
378 | geometry.origin.x = 0; | 380 | geometry.origin.x = 0; |
379 | geometry.origin.y = 0; | 381 | geometry.origin.y = 0; |
380 | geometry.size.w = op->width; | 382 | geometry.size.w = size->w; |
381 | geometry.size.h = op->height; | 383 | geometry.size.h = size->h; |
382 | if (op->focused == ws) { | 384 | if (op->focused == ws) { |
383 | wlc_view_bring_to_front(container->handle); | 385 | wlc_view_bring_to_front(container->handle); |
384 | } | 386 | } |