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
1
dwl.c
1
dwl.c
|
|
@ -1034,6 +1034,7 @@ void
|
||||||
togglefullscreen(const Arg *arg)
|
togglefullscreen(const Arg *arg)
|
||||||
{
|
{
|
||||||
Client *sel = selclient();
|
Client *sel = selclient();
|
||||||
|
if (sel)
|
||||||
setfullscreen(sel, !sel->isfullscreen);
|
setfullscreen(sel, !sel->isfullscreen);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue