summaryrefslogtreecommitdiffstats
path: root/sway/focus.c
diff options
context:
space:
mode:
authorLibravatar Zandr Martin <zandrmartin+git@gmail.com>2016-05-28 18:18:46 -0500
committerLibravatar Zandr Martin <zandrmartin+git@gmail.com>2016-05-28 18:18:46 -0500
commitd291a29f305efdf0b739d48a23170bf6057ac3a6 (patch)
tree129d1b66f8be0afc1a486096bb31cd9ac458e87f /sway/focus.c
parentMerge pull request #675 from zandrmartin/add-workspace-sorting (diff)
downloadsway-d291a29f305efdf0b739d48a23170bf6057ac3a6.tar.gz
sway-d291a29f305efdf0b739d48a23170bf6057ac3a6.tar.zst
sway-d291a29f305efdf0b739d48a23170bf6057ac3a6.zip
enforce workspace output assignents
when creating a new output, move to that output all extant workspaces that are assigned to that output. (unrelated) remove comment that was no longer applicable, fix spacing in an assignment
Diffstat (limited to 'sway/focus.c')
-rw-r--r--sway/focus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/focus.c b/sway/focus.c
index 9db2aaa7..2219ab4a 100644
--- a/sway/focus.c
+++ b/sway/focus.c
@@ -110,7 +110,7 @@ bool set_focused_container(swayc_t *c) {
110 // Get workspace for c, get that workspaces current focused container. 110 // Get workspace for c, get that workspaces current focused container.
111 swayc_t *workspace = swayc_active_workspace_for(c); 111 swayc_t *workspace = swayc_active_workspace_for(c);
112 swayc_t *focused = get_focused_view(workspace); 112 swayc_t *focused = get_focused_view(workspace);
113 // if the workspace we are changing focus to has a fullscreen view return 113
114 if (swayc_is_fullscreen(focused) && focused != c) { 114 if (swayc_is_fullscreen(focused) && focused != c) {
115 // if switching to a workspace with a fullscreen view, 115 // if switching to a workspace with a fullscreen view,
116 // focus on the fullscreen view 116 // focus on the fullscreen view