OSDN Git Service

sdl: Grab input on end of non-absolute mouse click
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 31 Jan 2012 12:45:30 +0000 (13:45 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 1 Feb 2012 20:45:02 +0000 (14:45 -0600)
commit822f98d2a56c8dcc857bb6a4c4da6382787533a0
tree7f3677d0c735028618301e5717fd843e6f22fcad
parenteaa2e027b73c9afca623d877c91150a94c83049d
sdl: Grab input on end of non-absolute mouse click

By grabbing the input already on button down, we leave the button in
that state for the host GUI. Thus it takes another click after releasing
the input again to synchronize the mouse button state.

Avoid this by grabbing on button up.

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