mirror of
https://codeberg.org/dwl/dwl.git
synced 2026-04-08 08:21:00 -04:00
verify c->mon in setfullscreen()
try to open a client in fullscreen mode (example: foot -F) causes that dwl crash, this prevent crash but isn't a solution, since client will be open in normal mode, we must find a way to set c->mon in createnotify function
This commit is contained in:
parent
c6f96d5391
commit
144331e3b3
1 changed files with 3 additions and 0 deletions
3
dwl.c
3
dwl.c
|
|
@ -1018,6 +1018,9 @@ togglefullscreen(const Arg *arg)
|
|||
void
|
||||
setfullscreen(Client *c, int fullscreen)
|
||||
{
|
||||
if (!c->mon)
|
||||
return;
|
||||
|
||||
c->isfullscreen = fullscreen;
|
||||
c->bw = (1 - fullscreen) * borderpx;
|
||||
client_set_fullscreen(c, fullscreen);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue