mirror of
https://github.com/swaywm/sway.git
synced 2025-11-20 06:59:46 -05:00
Allow containers to be fullscreen
This commit is contained in:
parent
c8dc9b3b30
commit
27a20a4884
18 changed files with 226 additions and 156 deletions
|
|
@ -357,7 +357,7 @@ static void handle_map(struct wl_listener *listener, void *data) {
|
|||
view_map(view, xsurface->surface);
|
||||
|
||||
if (xsurface->fullscreen) {
|
||||
view_set_fullscreen(view, true);
|
||||
container_set_fullscreen(view->swayc, true);
|
||||
struct sway_container *ws = container_parent(view->swayc, C_WORKSPACE);
|
||||
arrange_windows(ws);
|
||||
} else {
|
||||
|
|
@ -395,7 +395,7 @@ static void handle_request_fullscreen(struct wl_listener *listener, void *data)
|
|||
if (!xsurface->mapped) {
|
||||
return;
|
||||
}
|
||||
view_set_fullscreen(view, xsurface->fullscreen);
|
||||
container_set_fullscreen(view->swayc, xsurface->fullscreen);
|
||||
|
||||
struct sway_container *output = container_parent(view->swayc, C_OUTPUT);
|
||||
arrange_windows(output);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue