Prevent crashes on fullscreen with empty desktop

This commit is contained in:
Nise Void 2019-02-15 11:16:58 +01:00
parent f763c5821e
commit 4b7d03e4ac
Signed by: NiseVoid
GPG Key ID: FBA14AC83EA602F3
1 changed files with 4 additions and 0 deletions

View File

@ -1,4 +1,8 @@
void togglefullscreen() {
if (selmon->sel == 0) {
return;
}
if (selmon->sel->isfullscreen) {
setfullscreen(selmon->sel, 0);
} else {