aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2023-07-13 23:31:18 -0600
committerAlexander Orzechowski <alex@ozal.ski>2023-07-15 10:28:25 +0000
commit4de9c9c47f18cafb10b0a8110550e16b61c3093c (patch)
tree417f3933eaa37187e4a4413552999718a0d48751
parent37ef9d73563ec0ce3475b8a01bbfd84a94a4fef7 (diff)
scene: send wl_surface.preferred_buffer_scale
-rw-r--r--types/scene/surface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/types/scene/surface.c b/types/scene/surface.c
index 1b585e8c..1fe0762b 100644
--- a/types/scene/surface.c
+++ b/types/scene/surface.c
@@ -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(