wayland: fractional_scale_preferred_scale(): only push update if scale has changed

Also, drop wl_window::have_preferred_scale. Check for scale > 0 instead.
This commit is contained in:
Daniel Eklöf 2023-07-17 16:12:34 +02:00
parent 829353a5da
commit 59f0a721c4
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 9 additions and 5 deletions

View file

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