We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
HTCLIENT
1 parent af9cf6b commit c62b4a0Copy full SHA for c62b4a0
src/Native/Windows.cs
@@ -112,6 +112,11 @@ public void SetupWindow(Window window)
112
// Custom WM_NCHITTEST
113
if (msg == 0x0084)
114
{
115
+ handled = true;
116
+
117
+ if (window.WindowState == WindowState.FullScreen || window.WindowState == WindowState.Maximized)
118
+ return (IntPtr)HitTest.HTCLIENT;
119
120
var p = IntPtrToPixelPoint(lParam);
121
GetWindowRect(hWnd, out var rcWindow);
122
@@ -135,7 +140,6 @@ public void SetupWindow(Window window)
135
140
HitTest.HTBOTTOMLEFT, HitTest.HTBOTTOM, HitTest.HTBOTTOMRIGHT
136
141
};
137
142
138
- handled = true;
139
143
return (IntPtr)(zones[row * 3 + col]);
144
}
145
0 commit comments