return early if the client doesn't have monitor in setfloating
there is still a bug, but for now this prevents a segfault Bug: https://github.com/djpohly/dwl/issues/472
This commit is contained in:
parent
c1d8b77f7f
commit
aea8dd6ae1
1 changed files with 2 additions and 0 deletions
2
dwl.c
2
dwl.c
|
@ -2026,6 +2026,8 @@ void
|
|||
setfloating(Client *c, int floating)
|
||||
{
|
||||
c->isfloating = floating;
|
||||
if (!c->mon)
|
||||
return;
|
||||
wlr_scene_node_reparent(&c->scene->node, layers[c->isfloating ? LyrFloat : LyrTile]);
|
||||
arrange(c->mon);
|
||||
printstatus();
|
||||
|
|
Loading…
Reference in a new issue