mirror of
https://github.com/mpv-player/mpv
synced 2025-01-23 16:13:39 +00:00
Hack around Windows focus problem with -vo gl
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20673 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
1fd844ab06
commit
97a3016cae
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user