]> git.proxmox.com Git - qemu.git/commit
sdl: Fix block prevention of SDL_WM_GrabInput
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 31 Jan 2012 12:45:28 +0000 (13:45 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 1 Feb 2012 20:45:02 +0000 (14:45 -0600)
commit85f94f868fcd868f0f605e9d3c1ad6351c557190
tree88aed5321893f9ad23192c9e8cf5a0da9f7799b9
parent6659635619721f319be80e114a65c3386d9bf8a0
sdl: Fix block prevention of SDL_WM_GrabInput

Consistently check for SDL_APPINPUTFOCUS before trying to grab the input
focus. Just checking for SDL_APPACTIVE doesn't work. Moving the check to
sdl_grab_start allows for some consolidation.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
ui/sdl.c