From 97a3016cae3a3cfc054faa9bed6d7164875be538 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 4 Nov 2006 21:44:53 +0000 Subject: Hack around Windows focus problem with -vo gl git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20673 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/w32_common.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libvo') diff --git a/libvo/w32_common.c b/libvo/w32_common.c index 4b19594249..0b740661e2 100644 --- a/libvo/w32_common.c +++ b/libvo/w32_common.c @@ -261,6 +261,11 @@ static int createRenderingContext(void) { vo_dheight = prev_height; vo_dx = prev_x; vo_dy = prev_y; + // HACK around what probably is a windows focus bug: + // when pressing 'f' on the console, then 'f' again to + // return to windowed mode, any input into the video + // window is lost forever. + SetFocus(vo_window); } r.left = vo_dx; r.right = r.left + vo_dwidth; -- cgit v1.2.3