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/dwl#472
  • Loading branch information
sevz17 authored and mobygit committed Oct 9, 2023
1 parent b4539cc commit fc0542b
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 @@ -2049,6 +2049,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 fc0542b

Please sign in to comment.