aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/view.c
diff options
context:
space:
mode:
authorLibravatar fwsmit <fw.smit01@gmail.com>2021-01-20 22:15:23 +0100
committerLibravatar Ronan Pigott <rpigott@berkeley.edu>2021-01-25 11:54:44 -0700
commit241ce2af83884a07cc2017dd06bbc4d8093052fb (patch)
tree86f22265b69dbf3d944ad51bf054cb0f58c10ffb /sway/tree/view.c
parentAdhere to ICCCM focus specification (diff)
downloadsway-241ce2af83884a07cc2017dd06bbc4d8093052fb.tar.gz
sway-241ce2af83884a07cc2017dd06bbc4d8093052fb.tar.zst
sway-241ce2af83884a07cc2017dd06bbc4d8093052fb.zip
Implement foreign toplevel fullscreen output hints
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r--sway/tree/view.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index 7afcdf31..c1ce4e6b 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -651,6 +651,18 @@ static void handle_foreign_fullscreen_request(
651 } 651 }
652 } 652 }
653 653
654 if (event->fullscreen && event->output && event->output->data) {
655 struct sway_output *output = event->output->data;
656 struct sway_workspace *ws = output_get_active_workspace(output);
657 if (ws && !container_is_scratchpad_hidden(view->container)) {
658 if (container_is_floating(view->container)) {
659 workspace_add_floating(ws, view->container);
660 } else {
661 workspace_add_tiling(ws, view->container);
662 }
663 }
664 }
665
654 container_set_fullscreen(container, 666 container_set_fullscreen(container,
655 event->fullscreen ? FULLSCREEN_WORKSPACE : FULLSCREEN_NONE); 667 event->fullscreen ? FULLSCREEN_WORKSPACE : FULLSCREEN_NONE);
656 if (event->fullscreen) { 668 if (event->fullscreen) {