mirror of
https://github.com/NickHu/sway
synced 2024-12-29 22:23:46 +01:00
Merge pull request #355 from sce/fix_moving_last_ws
focus: Fix moving last workspace.
This commit is contained in:
commit
8033eb4d6a
1 changed files with 4 additions and 1 deletions
|
@ -96,7 +96,10 @@ bool set_focused_container(swayc_t *c) {
|
|||
return false;
|
||||
}
|
||||
swayc_t *active_ws = swayc_active_workspace();
|
||||
int active_ws_child_count = active_ws->children->length + active_ws->floating->length;
|
||||
int active_ws_child_count = 0;
|
||||
if (active_ws) {
|
||||
active_ws_child_count = active_ws->children->length + active_ws->floating->length;
|
||||
}
|
||||
|
||||
swayc_log(L_DEBUG, c, "Setting focus to %p:%ld", c, c->handle);
|
||||
|
||||
|
|
Loading…
Reference in a new issue