[bugfix] remove WinGetPosEx

This commit is contained in:
Klesh Wong 2021-07-23 01:31:28 +08:00
parent 3c051ec2ac
commit 3e4e140e9f
2 changed files with 1 additions and 3 deletions

View File

@ -187,7 +187,7 @@ MoveActiveWinByDirection(direction) {
LogDebug("left geometry: x: {1}, y: {2}, w: {3}, h: {4}", wx, wy, ww, wh) LogDebug("left geometry: x: {1}, y: {2}, w: {3}, h: {4}", wx, wy, ww, wh)
; right ; right
if (direction = "right") { if (direction = "right") {
wx := wx + ww wx := wx + ww + floor(PADDING / 2)
ww := w - ww ww := w - ww
LogDebug("right geometry: x: {1}, y: {2}, w: {3}, h: {4}", wx, wy, ww, wh) LogDebug("right geometry: x: {1}, y: {2}, w: {3}, h: {4}", wx, wy, ww, wh)
} else { } else {
@ -199,7 +199,6 @@ MoveActiveWinByDirection(direction) {
ww := ww + l + r ww := ww + l + r
wh := wh + t + b wh := wh + t + b
; padding ; padding
wx := wx + floor(PADDING / 2)
ww := ww - floor(PADDING * 1.5) ww := ww - floor(PADDING * 1.5)
wy := wy + PADDING wy := wy + PADDING
wh := wh - PADDING * 2 wh := wh - PADDING * 2

View File

@ -32,7 +32,6 @@ LogDebug(params*) {
InitWindowManager() InitWindowManager()
InitClipboardManager() InitClipboardManager()
#Include, ahk\JSON.ahk #Include, ahk\JSON.ahk
#Include, ahk\WinGetPosEx.ahk
#Include, ahk\WindowManager.ahk #Include, ahk\WindowManager.ahk
#Include, ahk\ClipboardManager.ahk #Include, ahk\ClipboardManager.ahk