Support keyboard movement and resizing for floating windows
This commit is contained in:
1 parent
76112b59ac
commit
4a9880eaad
5 files changed
+261
-1
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user