summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2025-11-10 11:19:56 +0400
committerSuleyman Farajli <suleyman@farajli.net>2025-11-10 11:19:56 +0400
commit6a7d7dfd6a083a816d100ccfc250f1cf75e8394b (patch)
tree38ce3ac73393e50af5c9371a7d71b70b9e0f8e2c
parentd1991b3d0ce2198ff7a39c8c4e0192c59317477a (diff)
fix: segfault when floatfixing where there is no windowHEADmaster
-rw-r--r--dwm.c2
1 files changed, 2 insertions, 0 deletions
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);