diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2018-08-03 11:36:18 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2018-08-03 11:36:18 -0400 |
| commit | 5e7d3290900d929816b81602c82139f61a6159ce (patch) | |
| tree | 9e504d0886f3beda1805cda094ba4ebfe423cf88 | |
| parent | e6816dd16b07c30ef8ccec970383f182532c2765 (diff) | |
Check correct ws for sticky and fix floating iter
| -rw-r--r-- | sway/tree/workspace.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; } } |
