提交 0294ffb9 编写于 作者: B bellard

disable grab if the window no longer has the focus (Windows case) (Mike Nordell)


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@777 c046a42c-6fe2-441c-8c8c-71466251a162
上级 d8d8aa4e
......@@ -301,6 +301,11 @@ static void sdl_refresh(DisplayState *ds)
}
}
break;
case SDL_ACTIVEEVENT:
if (gui_grab && (ev->active.gain & SDL_ACTIVEEVENTMASK) == 0) {
sdl_grab_end();
}
break;
default:
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册