mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
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:
parent
d71e588800
commit
8f74b1090a
2 changed files with 3 additions and 1 deletions
|
|
@ -346,6 +346,7 @@ struct wl_window {
|
|||
bool unmapped;
|
||||
|
||||
float scale;
|
||||
bool have_preferred_scale;
|
||||
|
||||
struct zxdg_toplevel_decoration_v1 *xdg_toplevel_decoration;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue