1
0
Fork 0
mirror of https://github.com/Raymo111/i3lock-color.git synced 2025-02-24 16:06:26 -05:00
I am bad at testing things.
This commit is contained in:
Chris Guillott 2017-05-30 18:58:18 -04:00
parent aa906d564c
commit 7fdb32a6be

View file

@ -165,6 +165,7 @@ xcb_pixmap_t draw_image(uint32_t *resolution) {
cairo_surface_t *xcb_output = cairo_xcb_surface_create(conn, bg_pixmap, vistype, resolution[0], resolution[1]); cairo_surface_t *xcb_output = cairo_xcb_surface_create(conn, bg_pixmap, vistype, resolution[0], resolution[1]);
cairo_t *xcb_ctx = cairo_create(xcb_output); cairo_t *xcb_ctx = cairo_create(xcb_output);
if (blur_img || img) {
if (blur_img) { if (blur_img) {
cairo_set_source_surface(xcb_ctx, blur_img, 0, 0); cairo_set_source_surface(xcb_ctx, blur_img, 0, 0);
cairo_paint(xcb_ctx); cairo_paint(xcb_ctx);
@ -183,6 +184,7 @@ xcb_pixmap_t draw_image(uint32_t *resolution) {
cairo_fill(xcb_ctx); cairo_fill(xcb_ctx);
cairo_pattern_destroy(pattern); cairo_pattern_destroy(pattern);
} }
}
} else { } else {
char strgroups[3][3] = {{color[0], color[1], '\0'}, char strgroups[3][3] = {{color[0], color[1], '\0'},
{color[2], color[3], '\0'}, {color[2], color[3], '\0'},