scene: send wl_surface.preferred_buffer_scale

This commit is contained in:
Leonardo Hernández Hernández 2023-07-13 23:31:18 -06:00 committed by Alexander Orzechowski
parent 37ef9d7356
commit 4de9c9c47f

View File

@ -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(