From ad2a7c26180dcb1ab0d2d128e207921152762ed6 Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Fri, 3 Aug 2018 11:36:18 -0400 Subject: Check correct ws for sticky and fix floating iter --- sway/tree/workspace.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sway/tree/workspace.c b/sway/tree/workspace.c index 588e2aae..687d9c95 100644 --- a/sway/tree/workspace.c +++ b/sway/tree/workspace.c @@ -412,6 +412,11 @@ bool workspace_switch(struct sway_container *workspace) { has_sticky = true; container_remove_child(floater); container_add_child(workspace->sway_workspace->floating, floater); + if (floater == focus) { + seat_set_focus(seat, NULL); + seat_set_focus(seat, floater); + } + --i; } } -- cgit v1.2.3-54-g00ecf