mirror of
https://codeberg.org/dwl/dwl.git
synced 2026-04-08 08:21:00 -04:00
Fix crash fullscreen without clients
Pressing mod + e (togglefullscreen) in a tag without clients caused dwl to crash because selclient() returned NULL
This commit is contained in:
parent
807b2ad2d6
commit
7187618d81
1 changed files with 2 additions and 1 deletions
3
dwl.c
3
dwl.c
|
|
@ -1034,7 +1034,8 @@ void
|
|||
togglefullscreen(const Arg *arg)
|
||||
{
|
||||
Client *sel = selclient();
|
||||
setfullscreen(sel, !sel->isfullscreen);
|
||||
if (sel)
|
||||
setfullscreen(sel, !sel->isfullscreen);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue