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.
pull/314/head
bakkeby 2 years ago
parent ad56835713
commit b4ae62d21a

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

Loading…
Cancel
Save