From b4ae62d21a38b475d34c8a1b3a051e41ccda92dd Mon Sep 17 00:00:00 2001 From: bakkeby Date: Tue, 1 Nov 2022 09:22:00 +0100 Subject: [PATCH] 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. --- dwm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dwm.c b/dwm.c index df964a2..2661987 100644 --- a/dwm.c +++ b/dwm.c @@ -3526,6 +3526,9 @@ setfullscreen(Client *c, int fullscreen) arrange(c->mon); #endif // !FAKEFULLSCREEN_PATCH } + #if FAKEFULLSCREEN_PATCH + resizeclient(c, c->x, c->y, c->w, c->h); + #endif // FAKEFULLSCREEN_PATCH } #endif // FAKEFULLSCREEN_CLIENT_PATCH