mirror of
https://github.com/mpv-player/mpv
synced 2025-03-11 08:37:59 +00:00
fix for disabling screensaver when in fullscreen mode while using the sub window.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19903 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
bc996f4dee
commit
6275f005bf
@ -601,6 +601,17 @@ static LRESULT CALLBACK SubProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM l
|
||||
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 @@ static LRESULT CALLBACK EventProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user