Updated Window.ahk regarding issue #200

This commit is contained in:
joten 2019-03-08 22:12:24 +01:00 committed by GitHub
parent 0601ffdcb8
commit 413a7c1976
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -263,12 +263,13 @@ Window_move(wndId, x, y, width, height) {
Debug_logMessage("DEBUG[2] Window_move: Potentially hung window " . wndId, 1)
Return, 1
} Else {
WinGetClass, wndClass, ahk_id %wndId%
If (wndClass != "mintty") {
SendMessage, WM_ENTERSIZEMOVE, , , , ahk_id %wndId%
}
SendMessage, WM_ENTERSIZEMOVE, , , , ahk_id %wndId%
WinMove, ahk_id %wndId%, , %x%, %y%, %width%, %height%
WinGetClass, wndClass, ahk_id %wndId%
If (wndClass == "mintty") {
Sleep, % Config_shellMsgDelay
}
;If Not (wndMinMax = 1) Or Not Window_#%wndId%_isDecorated Or Manager_windowNotMaximized(width, height) {
If Window_getPosEx(wndId, wndX, wndY, wndW, wndH) And (Abs(wndX - x) > 1 Or Abs(wndY - y) > 1 Or Abs(wndW - width) > 1 Or Abs(wndH - height) > 1) {
x -= wndX - x