From 3e4e140e9f5bf071cf92a1cae3eff3405919abd6 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Fri, 23 Jul 2021 01:31:28 +0800 Subject: [PATCH] [bugfix] remove WinGetPosEx --- win/ahk/WindowManager.ahk | 3 +-- win/win.ahk | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/win/ahk/WindowManager.ahk b/win/ahk/WindowManager.ahk index ab9c82b..863aec7 100644 --- a/win/ahk/WindowManager.ahk +++ b/win/ahk/WindowManager.ahk @@ -187,7 +187,7 @@ MoveActiveWinByDirection(direction) { LogDebug("left geometry: x: {1}, y: {2}, w: {3}, h: {4}", wx, wy, ww, wh) ; right if (direction = "right") { - wx := wx + ww + wx := wx + ww + floor(PADDING / 2) ww := w - ww LogDebug("right geometry: x: {1}, y: {2}, w: {3}, h: {4}", wx, wy, ww, wh) } else { @@ -199,7 +199,6 @@ MoveActiveWinByDirection(direction) { ww := ww + l + r wh := wh + t + b ; padding - wx := wx + floor(PADDING / 2) ww := ww - floor(PADDING * 1.5) wy := wy + PADDING wh := wh - PADDING * 2 diff --git a/win/win.ahk b/win/win.ahk index a6ab095..5f43fda 100644 --- a/win/win.ahk +++ b/win/win.ahk @@ -32,7 +32,6 @@ LogDebug(params*) { InitWindowManager() InitClipboardManager() #Include, ahk\JSON.ahk -#Include, ahk\WinGetPosEx.ahk #Include, ahk\WindowManager.ahk #Include, ahk\ClipboardManager.ahk