Skip to content

Commit

Permalink
Fix Alt-Esc not cancelling window-mru
Browse files Browse the repository at this point in the history
  • Loading branch information
rustn00b committed Jan 16, 2025
1 parent f2e929d commit 2c69396
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/input/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c69396

Please sign in to comment.