mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
scene: send wl_surface.preferred_buffer_scale
This commit is contained in:
parent
37ef9d7356
commit
4de9c9c47f
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue