From 6a7d7dfd6a083a816d100ccfc250f1cf75e8394b Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Mon, 10 Nov 2025 11:19:56 +0400 Subject: fix: segfault when floatfixing where there is no window --- dwm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dwm.c b/dwm.c index 7a6b626..f3aa3d5 100644 --- a/dwm.c +++ b/dwm.c @@ -951,6 +951,8 @@ void togglefocusfloat(const Arg *arg) { Client *c = NULL; + if (!selmon->sel) + return; if(focusfloat) { c = nexttiled(selmon->clients); -- cgit v1.2.3