diff options
author | Tony Crisci <tony@dubstepdish.com> | 2016-08-01 23:56:34 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2016-08-01 23:56:34 -0400 |
commit | 4344fe5011bbaac5bb3e4bee418cb3d5b8f3bb76 (patch) | |
tree | 9c62deeb1b43e35bce0a86fdaeec4d7fa392ea07 /sway/handlers.c | |
parent | Merge pull request #813 from acrisci/bug/remove-dead-lock-var (diff) | |
download | sway-4344fe5011bbaac5bb3e4bee418cb3d5b8f3bb76.tar.gz sway-4344fe5011bbaac5bb3e4bee418cb3d5b8f3bb76.tar.zst sway-4344fe5011bbaac5bb3e4bee418cb3d5b8f3bb76.zip |
bugfix: focus container on output when focused
Focus the container on the output (not the output itself) when an output is
focused.
This is intended to fix a bug where borders are not updated correctly when
switching the vt away/back to sway.
Diffstat (limited to 'sway/handlers.c')
-rw-r--r-- | sway/handlers.c | 2 |
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) { | |||
226 | handle_output_created(output); | 226 | handle_output_created(output); |
227 | } | 227 | } |
228 | if (focus) { | 228 | if (focus) { |
229 | set_focused_container(c); | 229 | set_focused_container(get_focused_container(c)); |
230 | } | 230 | } |
231 | } | 231 | } |
232 | 232 | ||