input: Intercept Enter key when confirming the exit dialog

This commit is contained in:
Ivan Molodetskikh
2025-02-11 13:21:56 +03:00
parent 5246e2ff25
commit 7b18ff8870
+4
View File
@@ -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);
}
}