take care of non-existant old workspaces

This commit is contained in:
Francesco Mazzoli
2012-11-03 11:17:30 +00:00
committed by Michael Stapelberg
parent 74d596e0fc
commit 464d387044
2 changed files with 7 additions and 2 deletions

View File

@ -350,7 +350,10 @@ static void _workspace_focus_event(Con *current, Con *old) {
dump_node(gen, current, false);
ystr("old");
dump_node(gen, old, false);
if (old == NULL)
y(null);
else
dump_node(gen, old, false);
y(map_close);