regain window focus in fullscreen, patch by Erik Lunchpail <enik_27can at yahoo.com>

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15622 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
faust3 2005-06-03 05:16:02 +00:00
parent eb81ab5830
commit 6b2538d96b
1 changed files with 1 additions and 1 deletions

View File

@ -308,7 +308,7 @@ static uint32_t preinit(const char *arg){
static uint32_t control(uint32_t request, void *data, ...){
switch (request) {
case VOCTRL_FULLSCREEN:
if(!vo_fs){vo_fs=1;ShowWindow(hWndFS,SW_SHOW);}
if(!vo_fs){vo_fs=1;ShowWindow(hWndFS,SW_SHOW);SetForegroundWindow(hWndFS);}
else {vo_fs=0; ShowWindow(hWndFS,SW_HIDE);}
break;
case VOCTRL_QUERY_FORMAT: