changeset 19897:b69d78e8aee8

fix for disabling screensaver when in fullscreen mode while using the sub window.
author vayne
date Mon, 18 Sep 2006 23:05:57 +0000
parents 7f0caf768528
children d77040154bad
files Gui/win32/gui.c
diffstat 1 files changed, 11 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/Gui/win32/gui.c	Mon Sep 18 22:32:51 2006 +0000
+++ b/Gui/win32/gui.c	Mon Sep 18 23:05:57 2006 +0000
@@ -601,6 +601,17 @@
             SetForegroundWindow(hWnd);
             return 0;
         }
+        case WM_SYSCOMMAND:
+        {
+            switch(wParam)
+            {
+                case SC_SCREENSAVE:
+                case SC_MONITORPOWER:
+                    mp_msg(MSGT_VO, MSGL_V ,"<vo_directx><INFO>killing screensaver\n" );
+                    return 0;
+            }
+            break;
+        }
         case WM_PAINT:
         {
             PAINTSTRUCT ps;
@@ -722,17 +733,6 @@
         case WM_CHAR:
             mplayer_put_key(wParam);
             break;
-        case WM_SYSCOMMAND:
-        {
-            switch(wParam)
-            {
-                case SC_SCREENSAVE:
-                case SC_MONITORPOWER:
-                    mp_msg(MSGT_VO, MSGL_V ,"<vo_directx><INFO>killing screensaver\n" );
-                    return 0;
-            }
-            break;
-        }
         case WM_COPYDATA:
         {
             if(lParam)