Commit 3623e46d authored by Harish Krupo's avatar Harish Krupo Committed by Daniel Stone

desktop-shell: Set 1x1 buffers for solid-color backgrounds

When we are going to set a solid color for the background, use
a 1x1 buffer and set the viewport to the full size. This avoids
un-necessary allocation of buffer memory.
Signed-off-by: Harish Krupo's avatarHarish Krupo <harish.krupo.kps@intel.com>
parent 7bcbab1f
......@@ -849,6 +849,12 @@ background_configure(void *data,
return;
}
if (!background->image) {
widget_set_viewport_destination(background->widget, width, height);
width = 1;
height = 1;
}
widget_schedule_resize(background->widget, width, height);
}
......
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