changeset 15621:54e8a5b5d9c4

regain window focus in fullscreen, patch by Erik Lunchpail <enik_27can at yahoo.com>
author faust3
date Fri, 03 Jun 2005 05:16:02 +0000
parents 692c06b7dc92
children 97bf217fd91e
files libvo/vo_winvidix.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_winvidix.c	Thu Jun 02 23:14:15 2005 +0000
+++ b/libvo/vo_winvidix.c	Fri Jun 03 05:16:02 2005 +0000
@@ -308,7 +308,7 @@
 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: