Remove optimization in NC_HandleNCActivate
Dmitry Timoshkov
dmitry at baikal.ru
Fri Jun 1 02:09:05 CDT 2001
Hello.
Changelog:
Dmitry Timoshkov <dmitry at codeweavers.com>
Remove optimization in NC_HandleNCActivate.
--- cvs/wine/windows/nonclient.c Sat Mar 24 13:52:57 2001
+++ wine/windows/nonclient.c Thu Mar 29 22:26:34 2001
@@ -1818,12 +1818,11 @@
*/
LONG NC_HandleNCActivate( WND *wndPtr, WPARAM16 wParam )
{
- WORD wStateChange;
-
- if( wParam ) wStateChange = !(wndPtr->flags & WIN_NCACTIVATED);
- else wStateChange = wndPtr->flags & WIN_NCACTIVATED;
-
- if( wStateChange )
+ /* Lotus Notes draws menu descriptions in the caption of its main
+ * window. When it wants to restore original "system" view, it just
+ * sends WM_NCACTIVATE message to itself. Any optimizations here in
+ * attempt to minimize redrawings lead to a not restored caption.
+ */
{
if (wParam) wndPtr->flags |= WIN_NCACTIVATED;
else wndPtr->flags &= ~WIN_NCACTIVATED;
More information about the wine-patches
mailing list