Send wl_surface.preferred_buffer_scale

References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3696
master
Simon Ser 2 years ago
parent 92244c87db
commit fc16fb6549

@ -56,6 +56,7 @@ void surface_update_outputs(struct wlr_surface *surface) {
} }
} }
wlr_fractional_scale_v1_notify_scale(surface, scale); 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, void surface_enter_output(struct wlr_surface *surface,

@ -103,7 +103,7 @@ bool server_init(struct sway_server *server) {
return false; return false;
} }
server->compositor = wlr_compositor_create(server->wl_display, 5, server->compositor = wlr_compositor_create(server->wl_display, 6,
server->renderer); server->renderer);
server->compositor_new_surface.notify = handle_compositor_new_surface; server->compositor_new_surface.notify = handle_compositor_new_surface;
wl_signal_add(&server->compositor->events.new_surface, wl_signal_add(&server->compositor->events.new_surface,

Loading…
Cancel
Save