Skip to content

Commit

Permalink
return early if the client doesn't have monitor in setfloating
Browse files Browse the repository at this point in the history
there is still a bug, but for now this prevents a segfault

Bug: djpohly#472
  • Loading branch information
sevz17 committed Sep 7, 2023
1 parent c1d8b77 commit aea8dd6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dwl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit aea8dd6

Please sign in to comment.