mir: only paint background if window has one

This commit is contained in:
Marco Trevisan (Treviño)
2014-12-12 03:01:38 +01:00
committed by William Hua
parent 38d46aacae
commit 9a84c3e0f5

View File

@ -382,13 +382,13 @@ gdk_mir_window_impl_ref_cairo_surface (GdkWindow *window)
impl->cairo_surface = cairo_surface_reference (cairo_surface);
/* Draw background */
c = cairo_create (impl->cairo_surface);
if (impl->background)
cairo_set_source (c, impl->background);
else
cairo_set_source_rgb (c, 1.0, 0.0, 0.0);
cairo_paint (c);
cairo_destroy (c);
{
c = cairo_create (impl->cairo_surface);
cairo_set_source (c, impl->background);
cairo_paint (c);
cairo_destroy (c);
}
return cairo_surface;
}