Prevent crashes on fullscreen with empty desktop
This commit is contained in:
parent
f763c5821e
commit
4b7d03e4ac
@ -1,4 +1,8 @@
|
||||
void togglefullscreen() {
|
||||
if (selmon->sel == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (selmon->sel->isfullscreen) {
|
||||
setfullscreen(selmon->sel, 0);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user