~ruther/dwl

aea8dd6ae122bdc99e104afe019479d45755f239 — Leonardo Hernández Hernández 1 year, 9 months ago c1d8b77
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
1 files changed, 2 insertions(+), 0 deletions(-)

M dwl.c
M dwl.c => dwl.c +2 -0
@@ 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();

Do not follow this link