diff --git a/bugn.exe b/bugn.exe index c96ec16..c8af7e9 100644 Binary files a/bugn.exe and b/bugn.exe differ diff --git a/src/Window.ahk b/src/Window.ahk index 93debb5..1f7ebff 100644 --- a/src/Window.ahk +++ b/src/Window.ahk @@ -244,7 +244,8 @@ Window_move(wndId, x, y, width, height) { Local wndMinMax, WM_ENTERSIZEMOVE, WM_EXITSIZEMOVE Local wndH, wndW, wndX, wndY - If Not wndId Window_getPosEx(wndId, wndX, wndY, wndW, wndH) And (Abs(wndX - x) < 2 And Abs(wndY - y) < 2 And Abs(wndW - width) < 2 And Abs(wndH - height) < 2) + ;; Check, if the window has already the given position and size and no action is required. + If Not wndId Or Window_getPosEx(wndId, wndX, wndY, wndW, wndH) And (Abs(wndX - x) < 2 And Abs(wndY - y) < 2 And Abs(wndW - width) < 2 And Abs(wndH - height) < 2) Return, 0 If Window_isHung(wndId) {