aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-08-02 00:04:55 -0400
committerGitHub <noreply@github.com>2016-08-02 00:04:55 -0400
commit18602367f17a8bd88275773a1a1558fd14afff72 (patch)
tree9c62deeb1b43e35bce0a86fdaeec4d7fa392ea07
parenta4096b73c948e7f8496810df70842c54b2988d5e (diff)
parent4344fe5011bbaac5bb3e4bee418cb3d5b8f3bb76 (diff)
Merge pull request #815 from acrisci/bug/focus-container-on-op-change
bugfix: focus container on output when focused
-rw-r--r--sway/handlers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index 80692371..6d35f8a2 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -226,7 +226,7 @@ static void handle_output_focused(wlc_handle output, bool focus) {
handle_output_created(output);
}
if (focus) {
- set_focused_container(c);
+ set_focused_container(get_focused_container(c));
}
}