changeset 20657:5fe83dd75490

Hack around Windows focus problem with -vo gl
author reimar
date Sat, 04 Nov 2006 21:44:53 +0000
parents 839c48c35ce8
children ed20cbab07a4
files libvo/w32_common.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/w32_common.c	Sat Nov 04 20:48:15 2006 +0000
+++ b/libvo/w32_common.c	Sat Nov 04 21:44:53 2006 +0000
@@ -261,6 +261,11 @@
         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;