commit 4344fe5011bbaac5bb3e4bee418cb3d5b8f3bb76
parent a4096b73c948e7f8496810df70842c54b2988d5e
Author: Tony Crisci <tony@dubstepdish.com>
Date: Mon, 1 Aug 2016 23:56:34 -0400
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:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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));
}
}