aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2020-10-23 01:27:46 +0200
committerJohn Ankarström <john@ankarstrom.se>2020-10-23 01:27:46 +0200
commita4a24bc0622d36529dfb41ee73496a9de119b859 (patch)
tree5394254cacc15ff85a6a2a3478e71bea5d7e9055
parent22ad84e906461725d55d79f33b3b768178cbdf31 (diff)
downloaddrm-a4a24bc0622d36529dfb41ee73496a9de119b859.tar.gz
release 1.4.2
-rw-r--r--CHANGELOG.txt11
-rw-r--r--drm.ahk6
-rw-r--r--drm.exebin836608 -> 836608 bytes
3 files changed, 9 insertions, 8 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 745ff71..4ee7d9e 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -1,9 +1,4 @@
-CHANGELOG ---------------------- 1.4.1 --------------------- 2020-05-03
+CHANGELOG ---------------------- 1.4.2 --------------------- 2020-05-06
-NEW: An empty field ("||") in the Resolutions registry key is now
- rendered as a separator in the tray menu.
-NEW: The tray menu now shows the current resolution with a checkmark
- next to it.
-NEW: If the user holds Shift while opening the tray menu, a new Restart
- options appears instead of Exit, allowing for faster configuration
- tweaking. \ No newline at end of file
+FIX: Now ignores the size, but tries to retain the position, of non-
+ resizable windows. \ No newline at end of file
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:
diff --git a/drm.exe b/drm.exe
index 7dde0a1..1c5a700 100644
--- a/drm.exe
+++ b/drm.exe
Binary files differ