From 4b7d03e4aced5a86d74b1ebfb6737c5dfb8826ec Mon Sep 17 00:00:00 2001 From: NiseVoid Date: Fri, 15 Feb 2019 11:16:58 +0100 Subject: [PATCH] Prevent crashes on fullscreen with empty desktop --- customfuncs.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/customfuncs.c b/customfuncs.c index 52ff39d..8f7bd42 100644 --- a/customfuncs.c +++ b/customfuncs.c @@ -1,4 +1,8 @@ void togglefullscreen() { + if (selmon->sel == 0) { + return; + } + if (selmon->sel->isfullscreen) { setfullscreen(selmon->sel, 0); } else {