mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-19 07:08:48 +01:00
feat(wm): center windows spawned during float override
It's very annoying and unclear when enabling the float override to open the next window as floating to have that window appear immediately over an existing tile. This commit sets an explicit behaviour to center windows spawned while the float override is active.
This commit is contained in:
1 parent
5919f88b38
commit
b6bd191cf5
1 file changed
+2
@@ -397,6 +397,8 @@ impl WindowManager {
|
||||
if behaviour.float_override {
|
||||
workspace.floating_windows_mut().push(window);
|
||||
workspace.set_layer(WorkspaceLayer::Floating);
|
||||
let mut floating_window = window;
|
||||
floating_window.center(&workspace.globals().work_area)?;
|
||||
self.update_focused_workspace(false, false)?;
|
||||
} else {
|
||||
match behaviour.current_behaviour {
|
||||
|
||||
Reference in new issue
Block a user