mirror of
https://github.com/swaywm/sway.git
synced 2024-11-10 20:44:01 +01:00
prevent views from disappearing
This commit is contained in:
parent
7654f5e7cd
commit
0de29d8247
@ -326,8 +326,10 @@ void update_geometry(swayc_t *container) {
|
|||||||
.y = container->y + (container->is_floating ? 0 : gap / 2)
|
.y = container->y + (container->is_floating ? 0 : gap / 2)
|
||||||
},
|
},
|
||||||
.size = {
|
.size = {
|
||||||
.w = container->width - (container->is_floating ? 0 : gap),
|
.w = container->width > (container->is_floating ? 0 : gap) ?
|
||||||
.h = container->height - (container->is_floating ? 0 : gap)
|
container->width - (container->is_floating ? 0 : gap) : 0,
|
||||||
|
.h = container->height > (container->is_floating ? 0 : gap) ?
|
||||||
|
container->height - (container->is_floating ? 0 : gap) : 0,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if (swayc_is_fullscreen(container)) {
|
if (swayc_is_fullscreen(container)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user