mirror of https://github.com/mpv-player/mpv
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);
|
SetForegroundWindow(hWnd);
|
||||||
return 0;
|
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:
|
case WM_PAINT:
|
||||||
{
|
{
|
||||||
PAINTSTRUCT ps;
|
PAINTSTRUCT ps;
|
||||||
|
@ -722,17 +733,6 @@ static LRESULT CALLBACK EventProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM
|
||||||
case WM_CHAR:
|
case WM_CHAR:
|
||||||
mplayer_put_key(wParam);
|
mplayer_put_key(wParam);
|
||||||
break;
|
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:
|
case WM_COPYDATA:
|
||||||
{
|
{
|
||||||
if(lParam)
|
if(lParam)
|
||||||
|
|
Loading…
Reference in New Issue