wndproc: Log WM_WINDOWPOSCHANGED
This commit is contained in:
parent
4bf0ddf5ff
commit
f0b29d0e9a
1 changed files with 7 additions and 1 deletions
|
@ -117,6 +117,12 @@ public sealed unsafe class WndProcHook : IDisposable
|
||||||
args.SuppressCall = true;
|
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)
|
if (args.Message == WM.WM_SIZE)
|
||||||
{
|
{
|
||||||
ParamToCoords(args.LParam, out int x, out int y);
|
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 &&
|
if (args.Message == WM.WM_NCCALCSIZE && args.WParam != 0 && plugin.CurrentBorderlessFullscreen &&
|
||||||
Service.Config.DXVKDWMHackMode.IsSetClientEdge())
|
Service.Config.DXVKDWMHackMode.IsSetClientEdge())
|
||||||
{
|
{
|
||||||
NCCALCSIZE_PARAMS* ncsize = (NCCALCSIZE_PARAMS*) args.LParam;
|
var ncsize = (NCCALCSIZE_PARAMS*) args.LParam;
|
||||||
MONITORINFO monitorInfo = new()
|
MONITORINFO monitorInfo = new()
|
||||||
{
|
{
|
||||||
cbSize = (uint) sizeof(MONITORINFO)
|
cbSize = (uint) sizeof(MONITORINFO)
|
||||||
|
|
Loading…
Add table
Reference in a new issue