From 0ad7c8111010a06984ecba3e58fa506ca0c2304e Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 21 Apr 2014 01:31:44 -0400 Subject: use the fg color for visual bell, don't just assume white --- src/window-xlib.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/window-xlib.c b/src/window-xlib.c index f59ea5e..aeb8759 100644 --- a/src/window-xlib.c +++ b/src/window-xlib.c @@ -427,14 +427,11 @@ static void runes_window_backend_flush(RunesTerm *t) static void runes_window_backend_visual_bell(RunesTerm *t) { RunesWindowBackend *w = &t->w; - cairo_pattern_t *white; struct timespec tm = { 0, 20000000 }; runes_window_backend_set_urgent(t); - white = cairo_pattern_create_rgb(1.0, 1.0, 1.0); - cairo_set_source(t->backend_cr, white); + cairo_set_source(t->backend_cr, t->fgdefault); cairo_paint(t->backend_cr); - cairo_pattern_destroy(white); cairo_surface_flush(cairo_get_target(t->backend_cr)); XFlush(w->dpy); nanosleep(&tm, NULL); -- cgit v1.2.3-54-g00ecf