From d291a29f305efdf0b739d48a23170bf6057ac3a6 Mon Sep 17 00:00:00 2001 From: Zandr Martin Date: Sat, 28 May 2016 18:18:46 -0500 Subject: 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 --- sway/focus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sway/focus.c') 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 -- cgit v1.2.3