aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-02-08 15:28:20 +0100
committerSimon Ser <contact@emersion.fr>2023-07-12 09:59:00 +0200
commitfc16fb65491bda0d059b8c9aeae3dc9962e5c690 (patch)
tree020313d43830231e0fb52e3783c77eff6d44d39e /sway/desktop
parent92244c87dbb85080c99eee10db9fed906117e169 (diff)
Send wl_surface.preferred_buffer_scale
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3696
Diffstat (limited to 'sway/desktop')
-rw-r--r--sway/desktop/surface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/desktop/surface.c b/sway/desktop/surface.c
index 68772ee0..5932eaa2 100644
--- a/sway/desktop/surface.c
+++ b/sway/desktop/surface.c
@@ -56,6 +56,7 @@ void surface_update_outputs(struct wlr_surface *surface) {
}
}
wlr_fractional_scale_v1_notify_scale(surface, scale);
+ wlr_surface_set_preferred_buffer_scale(surface, ceil(scale));
}
void surface_enter_output(struct wlr_surface *surface,