feat: add floating and fullscreen modes

This commit is contained in:
Samuel Onoja committed 2026-09-24 11:18:25 +01:00
1 parent 28d845ee64
commit 9ad6761c4d
5 files changed
+474 -36

No files matched your search

+16
View File
@@ -84,6 +84,22 @@ impl Ferese {
}
}
FilterResult::Intercept(())
} else if !modifiers.shift
&& matches!(symbol, keysyms::KEY_f | keysyms::KEY_F)
{
if state == KeyState::Pressed {
data.intercepted_keys.insert(keycode);
data.toggle_focused_fullscreen();
}
FilterResult::Intercept(())
} else if modifiers.shift && symbol == keysyms::KEY_space {
if state == KeyState::Pressed {
data.intercepted_keys.insert(keycode);
data.toggle_focused_floating();
}
FilterResult::Intercept(())
} else {
FilterResult::Forward