From 144331e3b34b17cce51944310541e3de3a799aa2 Mon Sep 17 00:00:00 2001 From: Sevz17 Date: Sun, 6 Jun 2021 11:15:35 -0500 Subject: [PATCH] verify c->mon in setfullscreen() try to open a client in fullscreen mode (example: foot -F) causes that dwl crash, this prevent crash but isn't a solution, since client will be open in normal mode, we must find a way to set c->mon in createnotify function --- dwl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dwl.c b/dwl.c index a8e1dcd..1180587 100644 --- a/dwl.c +++ b/dwl.c @@ -1018,6 +1018,9 @@ togglefullscreen(const Arg *arg) void setfullscreen(Client *c, int fullscreen) { + if (!c->mon) + return; + c->isfullscreen = fullscreen; c->bw = (1 - fullscreen) * borderpx; client_set_fullscreen(c, fullscreen);