fix(wm): limit resize/move path to managed hwnds

This commit ensures that the MoveResizeEnd handler will only proceed if
the window triggering the event is a managed window on the focused
workspace.

fix #733
This commit is contained in:
LGUG2Z
2024-04-05 15:19:30 -07:00
parent 6aa9be1ea0
commit 5e714cafab

View File

@@ -339,11 +339,8 @@ impl WindowManager {
let new_window_behaviour = self.window_container_behaviour;
let workspace = self.focused_workspace_mut()?;
if !workspace
.floating_windows()
.iter()
.any(|w| w.hwnd == window.hwnd)
{
if workspace.contains_managed_window(window.hwnd) {
let focused_container_idx = workspace.focused_container_idx();
let new_position = WindowsApi::window_rect(window.hwnd())?;