Prevent crashes on fullscreen with empty desktop
This commit is contained in:
parent
f763c5821e
commit
4b7d03e4ac
1 changed files with 4 additions and 0 deletions
|
@ -1,4 +1,8 @@
|
|||
void togglefullscreen() {
|
||||
if (selmon->sel == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (selmon->sel->isfullscreen) {
|
||||
setfullscreen(selmon->sel, 0);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue