summaryrefslogtreecommitdiff
diff options
-rw-r--r--lockscreen/BackgroundSettings.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/lockscreen/BackgroundSettings.cpp b/lockscreen/BackgroundSettings.cpp
index d5ec73cea..7ef4c6bee 100644
--- a/lockscreen/BackgroundSettings.cpp
+++ b/lockscreen/BackgroundSettings.cpp
@@ -77,18 +77,16 @@ BaseTexturePtr BackgroundSettings::GetBackgroundTexture(int monitor)
bg_surface = gnome_bg_create_surface(gnome_bg, root_window, geo.width, geo.height, FALSE);
}
+ auto const& bg_color = settings.background_color();
+ cairo_set_source_rgb(c, bg_color.red, bg_color.green, bg_color.blue);
+ cairo_paint(c);
+
if (bg_surface)
{
cairo_set_source_surface(c, bg_surface, 0, 0);
cairo_paint(c);
cairo_surface_destroy(bg_surface);
}
- else
- {
- auto const& bg_color = settings.background_color();
- cairo_set_source_rgb(c, bg_color.red, bg_color.green, bg_color.blue);
- cairo_paint(c);
- }
cairo_surface_set_device_scale(cairo_graphics.GetSurface(), scale, scale);