aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-12-13 07:52:57 -0500
committerDrew DeVault <sir@cmpwn.com>2015-12-13 07:52:57 -0500
commit6655534febe2f611a9ff2d9d11c6db4688acd47b (patch)
treeaeb23fcb86aaca0028272773f735f1bd809b0d60 /sway
parent34277207fd63b57ec8170f011a4115ef11c8ab0d (diff)
downloadsway-6655534febe2f611a9ff2d9d11c6db4688acd47b.tar.xz
Fullscreen on top of bar
Diffstat (limited to 'sway')
-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) {
}
};
if (swayc_is_fullscreen(container)) {
+ swayc_t *output = swayc_parent_by_type(container, C_OUTPUT);
+ const struct wlc_size *size = wlc_output_get_resolution(output->handle);
geometry.origin.x = 0;
geometry.origin.y = 0;
- geometry.size.w = op->width;
- geometry.size.h = op->height;
+ geometry.size.w = size->w;
+ geometry.size.h = size->h;
if (op->focused == ws) {
wlc_view_bring_to_front(container->handle);
}