From f6f2bcd024146678c7c206903453974cd0f392dc Mon Sep 17 00:00:00 2001 From: Barret Rennie Date: Sat, 21 Oct 2017 17:03:58 -0600 Subject: Set urgent WM flag on bell on X11 systems (#812) Sets the urgent WM flag when bell is emitted on X11 systems. Additionally, the flag is cleared on focus because not all WMs clear it automatically. --- src/term/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/term/mod.rs') diff --git a/src/term/mod.rs b/src/term/mod.rs index 97460421..59cf6baf 100644 --- a/src/term/mod.rs +++ b/src/term/mod.rs @@ -689,6 +689,7 @@ pub struct Term { pub dirty: bool, pub visual_bell: VisualBell, + pub next_is_urgent: Option, /// Saved cursor from main grid cursor_save: Cursor, @@ -791,6 +792,7 @@ impl Term { next_title: None, dirty: false, visual_bell: VisualBell::new(config), + next_is_urgent: None, input_needs_wrap: false, grid: grid, alt_grid: alt, @@ -1459,6 +1461,7 @@ impl ansi::Handler for Term { fn bell(&mut self) { trace!("bell"); self.visual_bell.ring(); + self.next_is_urgent = Some(true); } #[inline] -- cgit