mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-04-24 01:28:39 +02:00
fix(wm): ignore moves/resizes on floating workspaces
This commit makes sure that moves or resizes within a floating workspace (i.e. not tiled) will be ignored, unless the move is across monitors. We don't care about the positions or sizes of windows within a floating workspace!
This commit is contained in:
@@ -530,7 +530,9 @@ impl WindowManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let workspace = self.focused_workspace_mut()?;
|
let workspace = self.focused_workspace_mut()?;
|
||||||
if workspace.contains_managed_window(window.hwnd) || moved_across_monitors {
|
if (*workspace.tile() && workspace.contains_managed_window(window.hwnd))
|
||||||
|
|| moved_across_monitors
|
||||||
|
{
|
||||||
let resize = Rect {
|
let resize = Rect {
|
||||||
left: new_position.left - old_position.left,
|
left: new_position.left - old_position.left,
|
||||||
top: new_position.top - old_position.top,
|
top: new_position.top - old_position.top,
|
||||||
|
|||||||
Reference in New Issue
Block a user