diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2010-03-10 09:42:58 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-03-19 15:27:38 -0500 |
commit | 3af12c86d9db42c826dc9a7577b657543baf7fab (patch) | |
tree | 6c2856fe803e158f4e6083737757624a9388fb49 /vl.c | |
parent | 37c34d9d5d87ea9d51760310c8863b82cb8c055a (diff) |
sdl: use mouse mode notifier
Today we poll the mouse mode whenever there is a mouse movement. There is a
subtle usability problem with this though.
If we're in relative mode and grab is enabled, when we change to absolute mode,
we break grab. This gives a user a seamless transition when the new pointer
is enabled.
But because we poll for mouse change, this grab break won't occur until the user
attempts to move the mouse. By using notifiers, the grab break happens as soon
as possible.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vl.c')
0 files changed, 0 insertions, 0 deletions