diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-04-23 00:33:06 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-04-23 00:33:06 -0400 |
commit | f33d3772f8abdd314ec5b3aaf9b45b74117cdc9b (patch) | |
tree | b205dd2730c9d45aae173b814817652acea154e1 /src/window-xlib.c | |
parent | 7586ba2c614219af9e0ded9a38ff5eee8eb9891f (diff) | |
download | runes-f33d3772f8abdd314ec5b3aaf9b45b74117cdc9b.tar.gz runes-f33d3772f8abdd314ec5b3aaf9b45b74117cdc9b.zip |
make an option for making bells set the urgent hint
Diffstat (limited to 'src/window-xlib.c')
-rw-r--r-- | src/window-xlib.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/window-xlib.c b/src/window-xlib.c index 78fe699..d3a9811 100644 --- a/src/window-xlib.c +++ b/src/window-xlib.c @@ -430,7 +430,9 @@ static void runes_window_backend_visual_bell(RunesTerm *t) RunesWindowBackend *w = &t->w; struct timespec tm = { 0, 20000000 }; - runes_window_backend_set_urgent(t); + if (t->bell_is_urgent) { + runes_window_backend_set_urgent(t); + } cairo_set_source(t->backend_cr, t->fgdefault); cairo_paint(t->backend_cr); cairo_surface_flush(cairo_get_target(t->backend_cr)); @@ -443,7 +445,9 @@ static void runes_window_backend_audible_bell(RunesTerm *t) { RunesWindowBackend *w = &t->w; - runes_window_backend_set_urgent(t); + if (t->bell_is_urgent) { + runes_window_backend_set_urgent(t); + } XBell(w->dpy, 0); } |