mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-22 15:12:26 +00:00
scene: send wl_surface.preferred_buffer_scale
This commit is contained in:
parent
37ef9d7356
commit
4de9c9c47f
@ -16,6 +16,7 @@ static void handle_scene_buffer_outputs_update(
|
||||
}
|
||||
double scale = surface->buffer->primary_output->output->scale;
|
||||
wlr_fractional_scale_v1_notify_scale(surface->surface, scale);
|
||||
wlr_surface_set_preferred_buffer_scale(surface->surface, ceil(scale));
|
||||
}
|
||||
|
||||
static void handle_scene_buffer_output_enter(
|
||||
|
Loading…
Reference in New Issue
Block a user