mirror of
https://github.com/swaywm/sway.git
synced 2024-11-26 18:01:29 +00:00
Fullscreen on top of bar
This commit is contained in:
parent
34277207fd
commit
6655534feb
|
@ -375,10 +375,12 @@ void update_geometry(swayc_t *container) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if (swayc_is_fullscreen(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.x = 0;
|
||||||
geometry.origin.y = 0;
|
geometry.origin.y = 0;
|
||||||
geometry.size.w = op->width;
|
geometry.size.w = size->w;
|
||||||
geometry.size.h = op->height;
|
geometry.size.h = size->h;
|
||||||
if (op->focused == ws) {
|
if (op->focused == ws) {
|
||||||
wlc_view_bring_to_front(container->handle);
|
wlc_view_bring_to_front(container->handle);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue