Commit 0ffcffcf authored by Sebastian Krzyszkowiak's avatar Sebastian Krzyszkowiak Committed by Guido Gunther

PhoshBackgroundManager: Divide the background size by scale

Without this the background surface buffer is needlessly oversized,
putting unneccesary load on the GPU.
parent c2e3a55e
Pipeline #32792 passed with stages
in 8 minutes and 20 seconds
......@@ -42,8 +42,8 @@ create_background_for_monitor (PhoshBackgroundManager *self, PhoshMonitor *monit
background = g_object_ref_sink(PHOSH_BACKGROUND (phosh_background_new (
phosh_wayland_get_zwlr_layer_shell_v1(wl),
monitor->wl_output,
monitor->width,
monitor->height,
monitor->width / monitor->scale,
monitor->height / monitor->scale,
monitor == primary_monitor)));
g_hash_table_insert (self->backgrounds,
g_object_ref (monitor),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment