mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
Change recent-windows binds to have lower precedence
Otherwise it breaks people's existing binds.
This commit is contained in:
@@ -138,7 +138,8 @@ recent-windows {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
The recent windows binds have a precedence over the [normal binds](./Configuration:-Key-Bindings.md), meaning that if you have <kbd>Alt</kbd><kbd>Tab</kbd> bound to something else in the normal binds, the `recent-windows` bind will override it.
|
The recent windows binds have lower precedence than the [normal binds](./Configuration:-Key-Bindings.md), meaning that if you have <kbd>Alt</kbd><kbd>Tab</kbd> bound to something else in the normal binds, the `recent-windows` bind won't work.
|
||||||
|
In this case, you can remove the conflicting normal bind.
|
||||||
|
|
||||||
All binds in this section must have a modifier key like <kbd>Alt</kbd> or <kbd>Mod</kbd> because the recent windows switcher remains open only while you hold any modifier key.
|
All binds in this section must have a modifier key like <kbd>Alt</kbd> or <kbd>Mod</kbd> because the recent windows switcher remains open only while you hold any modifier key.
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -4937,8 +4937,8 @@ fn make_binds_iter<'a>(
|
|||||||
let mru_open_binds = mru.is_open().then(|| mru.opened_bindings(mods));
|
let mru_open_binds = mru.is_open().then(|| mru.opened_bindings(mods));
|
||||||
let mru_open_binds = mru_open_binds.into_iter().flatten();
|
let mru_open_binds = mru_open_binds.into_iter().flatten();
|
||||||
|
|
||||||
// MRU binds take precedence over general ones.
|
// General binds take precedence over the MRU binds.
|
||||||
mru_binds.chain(mru_open_binds).chain(general_binds)
|
general_binds.chain(mru_binds).chain(mru_open_binds)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
|||||||
Reference in New Issue
Block a user