From f0b29d0e9a9b7967aa3b897221b7437e212de10e Mon Sep 17 00:00:00 2001 From: Jade Macho Date: Sat, 28 Jun 2025 18:09:01 +0200 Subject: [PATCH] wndproc: Log WM_WINDOWPOSCHANGED --- CustomResolution2782/Hooks/WndProcHook.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CustomResolution2782/Hooks/WndProcHook.cs b/CustomResolution2782/Hooks/WndProcHook.cs index 42de09b..37ad5d6 100644 --- a/CustomResolution2782/Hooks/WndProcHook.cs +++ b/CustomResolution2782/Hooks/WndProcHook.cs @@ -117,6 +117,12 @@ public sealed unsafe class WndProcHook : IDisposable args.SuppressCall = true; } + if (args.Message == WM.WM_WINDOWPOSCHANGED) + { + var windowpos = (WINDOWPOS*) args.LParam; + Service.PluginLog.Debug($"WM_WINDOWPOSCHANGED {windowpos->cx} x {windowpos->cy}"); + } + if (args.Message == WM.WM_SIZE) { ParamToCoords(args.LParam, out int x, out int y); @@ -145,7 +151,7 @@ public sealed unsafe class WndProcHook : IDisposable if (args.Message == WM.WM_NCCALCSIZE && args.WParam != 0 && plugin.CurrentBorderlessFullscreen && Service.Config.DXVKDWMHackMode.IsSetClientEdge()) { - NCCALCSIZE_PARAMS* ncsize = (NCCALCSIZE_PARAMS*) args.LParam; + var ncsize = (NCCALCSIZE_PARAMS*) args.LParam; MONITORINFO monitorInfo = new() { cbSize = (uint) sizeof(MONITORINFO)