summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-04 21:44:53 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-04 21:44:53 +0000
commit97a3016cae3a3cfc054faa9bed6d7164875be538 (patch)
tree1356cbff9bb07798eb7adbdfe6f0ed16cd6ee620 /libvo
parent1fd844ab0607130ee7689025740930abe5ddee6c (diff)
downloadmpv-97a3016cae3a3cfc054faa9bed6d7164875be538.tar.bz2
mpv-97a3016cae3a3cfc054faa9bed6d7164875be538.tar.xz
Hack around Windows focus problem with -vo gl
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20673 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/w32_common.c5
1 files changed, 5 insertions, 0 deletions
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;