mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
fakefullscreen: fix for mis-sized fullscreen applications
An example problematic situation would be to open a YouTube video in Google Chrome and making that video fullscreen. Without this fix the window will go into fullscreen within its tiled dimension, but the size of the video will match that of the screen (and it will be cropped). With this fix the window will be resized which nudges the application to adjust the fullscreen size accordingly.
This commit is contained in:
parent
ad56835713
commit
b4ae62d21a
3
dwm.c
3
dwm.c
@ -3526,6 +3526,9 @@ setfullscreen(Client *c, int fullscreen)
|
|||||||
arrange(c->mon);
|
arrange(c->mon);
|
||||||
#endif // !FAKEFULLSCREEN_PATCH
|
#endif // !FAKEFULLSCREEN_PATCH
|
||||||
}
|
}
|
||||||
|
#if FAKEFULLSCREEN_PATCH
|
||||||
|
resizeclient(c, c->x, c->y, c->w, c->h);
|
||||||
|
#endif // FAKEFULLSCREEN_PATCH
|
||||||
}
|
}
|
||||||
#endif // FAKEFULLSCREEN_CLIENT_PATCH
|
#endif // FAKEFULLSCREEN_CLIENT_PATCH
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user