mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-13 14:23:24 +01:00
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:
@@ -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())?;
|
||||
|
||||
Reference in New Issue
Block a user