« Previous | Next » 

Revision 3af12c86


Added by Anthony Liguori about 12 years ago

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 <>


  • added
  • modified
  • copied
  • renamed
  • deleted

View differences