Support keyboard movement and resizing for floating windows

This commit is contained in:
Samuel Onoja committed 2026-10-07 08:19:33 +01:00
1 parent 76112b59ac
commit 4a9880eaad
5 files changed
+261 -1

No files matched your search

+15
View File
@@ -197,6 +197,13 @@ impl Ferese {
let Some(current) = self.focused_window else {
return;
};
if matches!(
self.workspaces.placement(current),
Some(WindowPlacement::Floating { .. })
) {
self.adjust_floating_direction(current, direction, false);
return;
}
let Some(bounds) = self.output_bounds() else {
return;
};
@@ -220,6 +227,14 @@ impl Ferese {
return;
};
if matches!(
self.workspaces.placement(current),
Some(WindowPlacement::Floating { .. })
) {
self.adjust_floating_direction(current, direction, true);
return;
}
match self
.workspaces
.active_mut()