wndproc: Log WM_WINDOWPOSCHANGED

This commit is contained in:
Jade Macho 2025-06-28 18:09:01 +02:00
parent 4bf0ddf5ff
commit f0b29d0e9a
Signed by: 0x0ade
GPG key ID: E1960710FE4FBEEF

View file

@ -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)