mirror of
https://github.com/swaywm/sway.git
synced 2024-11-10 20:44:01 +01:00
Implement foreign toplevel fullscreen output hints
This commit is contained in:
parent
62ec528c8c
commit
241ce2af83
@ -651,6 +651,18 @@ static void handle_foreign_fullscreen_request(
|
||||
}
|
||||
}
|
||||
|
||||
if (event->fullscreen && event->output && event->output->data) {
|
||||
struct sway_output *output = event->output->data;
|
||||
struct sway_workspace *ws = output_get_active_workspace(output);
|
||||
if (ws && !container_is_scratchpad_hidden(view->container)) {
|
||||
if (container_is_floating(view->container)) {
|
||||
workspace_add_floating(ws, view->container);
|
||||
} else {
|
||||
workspace_add_tiling(ws, view->container);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
container_set_fullscreen(container,
|
||||
event->fullscreen ? FULLSCREEN_WORKSPACE : FULLSCREEN_NONE);
|
||||
if (event->fullscreen) {
|
||||
|
Loading…
Reference in New Issue
Block a user