scene: send wl_surface.preferred_buffer_scale

master
Leonardo Hernández Hernández 1 year ago committed by Alexander Orzechowski
parent 37ef9d7356
commit 4de9c9c47f

@ -16,6 +16,7 @@ static void handle_scene_buffer_outputs_update(
} }
double scale = surface->buffer->primary_output->output->scale; double scale = surface->buffer->primary_output->output->scale;
wlr_fractional_scale_v1_notify_scale(surface->surface, 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( static void handle_scene_buffer_output_enter(

Loading…
Cancel
Save