sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 8033eb4d6ad2444e19681b429fe790e2528569b0
parent 62649a56c532788edfa80bc282586de6096bc3f9
Author: Drew DeVault <sir@cmpwn.com>
Date:   Fri, 18 Dec 2015 07:59:49 -0500

Merge pull request #355 from sce/fix_moving_last_ws

focus: Fix moving last workspace.
Diffstat:
Msway/focus.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sway/focus.c b/sway/focus.c @@ -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);