From 082d730944950c202f24d3701878c06cf5e44f5f Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 10 May 2016 15:17:33 -0400 Subject: redraw the full window after flashing the visual bell otherwise it leaves the foreground color around the border if the window isn't sized exactly right --- src/window-xlib.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/window-xlib.c b/src/window-xlib.c index 524b853..c41bedf 100644 --- a/src/window-xlib.c +++ b/src/window-xlib.c @@ -625,6 +625,9 @@ static void runes_window_backend_reset_visual_bell(void *t) { RunesWindowBackend *w = ((RunesTerm *)t)->w; + cairo_set_source(w->backend_cr, ((RunesTerm *)t)->config->bgdefault); + cairo_paint(w->backend_cr); + cairo_surface_flush(cairo_get_target(w->backend_cr)); runes_window_backend_request_flush(t); w->visual_bell_is_ringing = 0; } -- cgit v1.2.3-54-g00ecf