summaryrefslogtreecommitdiff
path: root/src/term
diff options
context:
space:
mode:
authorBarret Rennie <barret@brennie.ca>2017-10-21 17:03:58 -0600
committerJoe Wilm <jwilm@users.noreply.github.com>2017-10-21 16:03:58 -0700
commitf6f2bcd024146678c7c206903453974cd0f392dc (patch)
tree1e0f6994dbcc14325275e4d79030093f80f07b78 /src/term
parentb79574ee823900c21759628f92cf036271847afc (diff)
downloadalacritty-f6f2bcd024146678c7c206903453974cd0f392dc.tar.gz
alacritty-f6f2bcd024146678c7c206903453974cd0f392dc.zip
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.
Diffstat (limited to 'src/term')
-rw-r--r--src/term/mod.rs3
1 files changed, 3 insertions, 0 deletions
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<bool>,
/// 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]