aboutsummaryrefslogtreecommitdiff
path: root/drm.ahk
diff options
context:
space:
mode:
Diffstat (limited to 'drm.ahk')
-rw-r--r--drm.ahk6
1 files changed, 6 insertions, 0 deletions
diff --git a/drm.ahk b/drm.ahk
index 373353f..4e0a15a 100644
--- a/drm.ahk
+++ b/drm.ahk
@@ -182,11 +182,17 @@ Save(ByRef Positions)
WinReallyGetPos(i, x, y, w, h)
WinGet, exe, ProcessName, ahk_id %i%
+ WinGet, style, Style, ahk_id %i%
SysGet, bx, 32 ; window border thickness (x)
SysGet, by, 33 ; window border thickness (y)
cw := w - bx * 2 ; client width
ch := h - by * 2 ; client height
+ ; Ignore size for windows that cannot be resized
+
+ if (style & 0x40000 = 0) ; WS_SIZEBOX
+ DoIgnoreSize := true
+
; Custom rules
; Example: