NC_DoNCHitTest now returns HTNOWHERE like Windows is doing when
clicking on a window having a customize non client area.
diff --git a/windows/nonclient.c b/windows/nonclient.c
index 8a7b6c5..5bf6daa 100644
--- a/windows/nonclient.c
+++ b/windows/nonclient.c
@@ -785,8 +785,9 @@
return HTMENU;
}
- /* Should never get here */
- return HTERROR;
+ /* Has to return HTNOWHERE if nothing was found
+ Could happen when a window has a customized non client area */
+ return HTNOWHERE;
}
@@ -934,8 +935,9 @@
return HTMENU;
}
- /* Should never get here */
- return HTERROR;
+ /* Has to return HTNOWHERE if nothing was found
+ Could happen when a window has a customized non client area */
+ return HTNOWHERE;
}
@@ -2132,7 +2134,6 @@
if ((wParam & 0xfff0) == SC_MOVE)
{
- if (!(wndPtr->dwStyle & WS_CAPTION)) goto END;
if (!hittest)
hittest = NC_StartSizeMove( wndPtr, wParam, &capturePoint );
if (!hittest) goto END;