From 2c69396ae3d48186f70cf4f71d5d198f06186e8a Mon Sep 17 00:00:00 2001 From: rustN00b Date: Thu, 16 Jan 2025 12:59:25 +0100 Subject: [PATCH] Fix Alt-Esc not cancelling window-mru --- src/input/mod.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/input/mod.rs b/src/input/mod.rs index 2d3782a0e..4e426466f 100644 --- a/src/input/mod.rs +++ b/src/input/mod.rs @@ -382,13 +382,9 @@ impl State { } // If the ESC key was pressed with the Alt modifier and - // there is an active window-mru, cancel it and refocus the - // initial window (first in the list) - if pressed - && !this.niri.is_locked() - && matches!(raw, Keysym::Alt_L | Keysym::Alt_R) - && raw == Keysym::Escape - { + // there is an active window-mru, cancel the window-mru and + // refocus the initial window (first in the list) + if pressed && !this.niri.is_locked() && mods.alt && raw == Keysym::Escape { if let Some(id) = this .niri .window_mru