summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2015-12-13 07:52:57 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2015-12-13 07:52:57 -0500
commit6655534febe2f611a9ff2d9d11c6db4688acd47b (patch)
treeaeb23fcb86aaca0028272773f735f1bd809b0d60
parentPass keys along from wayland backend to clients (diff)
downloadsway-6655534febe2f611a9ff2d9d11c6db4688acd47b.tar.gz
sway-6655534febe2f611a9ff2d9d11c6db4688acd47b.tar.zst
sway-6655534febe2f611a9ff2d9d11c6db4688acd47b.zip
Fullscreen on top of bar
-rw-r--r--sway/layout.c6
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 }