diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-04 21:44:53 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-04 21:44:53 +0000 |
commit | 97a3016cae3a3cfc054faa9bed6d7164875be538 (patch) | |
tree | 1356cbff9bb07798eb7adbdfe6f0ed16cd6ee620 | |
parent | 1fd844ab0607130ee7689025740930abe5ddee6c (diff) |
Hack around Windows focus problem with -vo gl
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20673 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/w32_common.c | 5 |
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; |