summaryrefslogtreecommitdiffstats
path: root/source/widgets/widget.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-01-09 18:32:26 +0100
committerDave Davenport <qball@gmpclient.org>2017-01-09 18:32:26 +0100
commit854aa554533fcb5f93559220b474043f28ce45d4 (patch)
tree1bb409371616df3162cc4dae62ed3ddf90b80a1e /source/widgets/widget.c
parenta199fa3275c2bf2dfe6320de1410266ac626c6db (diff)
Better error reporting (1)
Diffstat (limited to 'source/widgets/widget.c')
-rw-r--r--source/widgets/widget.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/widgets/widget.c b/source/widgets/widget.c
index c51e63ff..d17b3db9 100644
--- a/source/widgets/widget.c
+++ b/source/widgets/widget.c
@@ -111,12 +111,13 @@ void widget_draw ( widget *widget, cairo_t *d )
widget->h - margin_top - margin_bottom
);
cairo_clip ( d );
-
+ cairo_set_source_rgba ( d, 1.0,1.0,1.0, 1.0 );
rofi_theme_get_color ( widget, "background", d );
cairo_paint ( d );
// Set new x/y possition.
cairo_translate ( d, widget->x, widget->y );
+ cairo_set_source_rgba ( d, 0.0,0.0,0.0, 1.0 );
int left = distance_get_pixel ( widget->border.left, ORIENTATION_HORIZONTAL );
int right = distance_get_pixel ( widget->border.right, ORIENTATION_HORIZONTAL );