window widgets to be ignored (minimize, close, etc)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8120
d7cf8633-e32d-0410-b094-
e92efae38249
case WM_SYSCOMMAND:
// prevent screensaver from occuring while the active window
+ // note: password-locked screensavers on Vista still work
if (vid_activewindow && ((wParam & 0xFFF0) == SC_SCREENSAVE || (wParam & 0xFFF0) == SC_MONITORPOWER))
- lRet = 0;; // note: password-locked screensavers on Vista still work
+ lRet = 0;
+ else
+ lRet = DefWindowProc (hWnd, uMsg, wParam, lParam);
break;
// this is complicated because Win32 seems to pack multiple mouse events into