wayland: use legacy scaling until fractional_scale::preferred_scale() has been called

This way, the initial frame is more likely to get scaled correctly;
foot will guess the initial (integer) scale from the available
monitors, and use that. By using legacy scaling, we force the
compositor to down-scale the image to the correct scale factor.

If we use the new fraction scaling method with an integer scaling
factor, the initial frame gets rendered way too big.
This commit is contained in:
Daniel Eklöf 2023-06-26 21:07:24 +02:00
parent d71e588800
commit 8f74b1090a
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 3 additions and 1 deletions

View file

@ -346,6 +346,7 @@ struct wl_window {
bool unmapped;
float scale;
bool have_preferred_scale;
struct zxdg_toplevel_decoration_v1 *xdg_toplevel_decoration;