Make Overview selection responsive and simplify window previews

This commit is contained in:
Samuel Onoja committed 2026-09-28 10:45:38 +01:00
1 parent 442b950bcd
commit 41d63f6b18
6 files changed
+409 -48

No files matched your search

+15
View File
@@ -135,6 +135,17 @@ impl Ferese {
}
let symbol = keysym.modified_sym().raw();
if data.overview.is_active()
&& matches!(symbol, keysyms::KEY_Return | keysyms::KEY_KP_Enter)
{
if state == KeyState::Pressed {
data.intercepted_keys.insert(keycode);
if let Some(id) = data.overview.selected() {
data.select_overview_window(id);
}
}
return FilterResult::Intercept(());
}
if overview_escape(symbol, data.overview.is_active()) {
if state == KeyState::Pressed {
data.intercepted_keys.insert(keycode);
@@ -598,6 +609,10 @@ impl Ferese {
if self.session_lock.active {
return;
}
if self.overview.is_active() {
self.hover_overview_window(position);
return;
}
// Keep the explicitly selected window focused until Overview's exit
// animation settles. Moving previews must not steal focus on pointer jitter.
if self.overview.is_presenting()