diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-04-21 01:31:44 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-04-21 01:31:44 -0400 |
commit | 0ad7c8111010a06984ecba3e58fa506ca0c2304e (patch) | |
tree | 07125c80678fdc50db245a4c6a9961bc3da04af6 | |
parent | 006fc2c63c8428f05b2dc1b36acbe0afb210beff (diff) | |
download | runes-0ad7c8111010a06984ecba3e58fa506ca0c2304e.tar.gz runes-0ad7c8111010a06984ecba3e58fa506ca0c2304e.zip |
use the fg color for visual bell, don't just assume white
-rw-r--r-- | src/window-xlib.c | 5 |
1 files changed, 1 insertions, 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); |