mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-05-08 03:43:25 +02: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 new_window_behaviour = self.window_container_behaviour;
|
||||||
|
|
||||||
let workspace = self.focused_workspace_mut()?;
|
let workspace = self.focused_workspace_mut()?;
|
||||||
if !workspace
|
|
||||||
.floating_windows()
|
if workspace.contains_managed_window(window.hwnd) {
|
||||||
.iter()
|
|
||||||
.any(|w| w.hwnd == window.hwnd)
|
|
||||||
{
|
|
||||||
let focused_container_idx = workspace.focused_container_idx();
|
let focused_container_idx = workspace.focused_container_idx();
|
||||||
|
|
||||||
let new_position = WindowsApi::window_rect(window.hwnd())?;
|
let new_position = WindowsApi::window_rect(window.hwnd())?;
|
||||||
|
|||||||
Reference in New Issue
Block a user