Commit adcf397e4f74
tarball1 file changed+4-6
@@ -412,13 +412,11 @@ impl Layout {
412412
self.history.push(w);413413
}414414
415
- /// The most recently focused visible window.415
+ /// The most recently focused visible window on the active output. Focus416
+ /// falling back to another output would leave keybinds acting on one417
+ /// output while the keyboard and pointer sit on another.416418
pub fn focused(&self) -> Option<WindowId> {417
- self.history418
- .iter()419
- .rev()420
- .copied()421
- .find(|&w| self.visible(w))419
+ self.focused_on(self.active?)422420
}423421
424422
/// The most recently focused visible window on `o`.