[MPlayer-cygwin] [PATCH] directx_vo fullscreen foreground window

Gianluigi Tiesi mplayer at netfarm.it
Sat Feb 12 21:25:31 CET 2005


This small patch should help mplayer to get focus when fullscreen is
issued by e.g. a gui, without it there is no way to take
player control since fullscreen window is not focused.

Bye
-- 
Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/
-------------- next part --------------
--- vo_directx.c.orig	2005-02-12 21:20:47.144112000 +0100
+++ vo_directx.c	2005-02-12 21:18:02.907952000 +0100
@@ -1469,6 +1469,7 @@
 					vo_fs=1;
 					ShowWindow(hWndFS,SW_SHOW);
 					ShowWindow(hWnd,SW_HIDE);
+					SetForegroundWindow(hWndFS);
 				}
                 else
 				{


More information about the MPlayer-cygwin mailing list