From 7b18ff8870c2610b3d532afef81a387a7a3f21d3 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Tue, 11 Feb 2025 13:21:56 +0300 Subject: input: Intercept Enter key when confirming the exit dialog --- src/input/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/input') diff --git a/src/input/mod.rs b/src/input/mod.rs index 96e17bc2..d1d564cb 100644 --- a/src/input/mod.rs +++ b/src/input/mod.rs @@ -380,6 +380,10 @@ impl State { if dialog.is_open() && pressed && raw == Some(Keysym::Return) { info!("quitting after confirming exit dialog"); this.niri.stop_signal.stop(); + + // Don't send this Enter press to any clients. + this.niri.suppressed_keys.insert(key_code); + return FilterResult::Intercept(None); } } -- cgit