mirror of https://github.com/mpv-player/mpv
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:
parent
eb81ab5830
commit
6b2538d96b
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue