From: havoc Date: Thu, 21 Feb 2008 11:50:57 +0000 (+0000) Subject: fix severe bug in my previous screensaver-disable patch that caused all X-Git-Tag: xonotic-v0.1.0preview~2402 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d711e1f59419bf6c6f2f595ebac1a8a97a1c084b;p=xonotic%2Fdarkplaces.git fix severe bug in my previous screensaver-disable patch that caused all window widgets to be ignored (minimize, close, etc) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8120 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/vid_wgl.c b/vid_wgl.c index 2c05701a..36520ee2 100644 --- a/vid_wgl.c +++ b/vid_wgl.c @@ -542,8 +542,11 @@ LONG WINAPI MainWndProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) 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