aboutsummaryrefslogtreecommitdiff
path: root/sway/focus.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-05-29 10:05:50 -0400
committerDrew DeVault <sir@cmpwn.com>2016-05-29 10:05:50 -0400
commitfc7132a3baf86d447d4c72755f1f7eafa01bb2e1 (patch)
tree129d1b66f8be0afc1a486096bb31cd9ac458e87f /sway/focus.c
parenta0315dc849aacd6e20cf57cb0cbb9ea1d91dce79 (diff)
parentd291a29f305efdf0b739d48a23170bf6057ac3a6 (diff)
Merge pull request #677 from zandrmartin/maintain-workspace-output-assignments
enforce workspace output assignents
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) {
// Get workspace for c, get that workspaces current focused container.
swayc_t *workspace = swayc_active_workspace_for(c);
swayc_t *focused = get_focused_view(workspace);
- // if the workspace we are changing focus to has a fullscreen view return
+
if (swayc_is_fullscreen(focused) && focused != c) {
// if switching to a workspace with a fullscreen view,
// focus on the fullscreen view