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:
bakkeby 2022-11-01 09:22:00 +01:00
parent ad56835713
commit b4ae62d21a

3
dwm.c
View File

@ -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