qmp: don't make -qmp disable the default monitor
Instead, we introduce a default_qmp flag. We don't use it yet, but will in thenext patch.
This has a user-visible impact as specifying just -qmp will now also show amonitor on the 'vc'.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Rewrite mouse handlers to use QTAILQ and to have an activation function
And convert usb-hid to use it (to avoid regression with bisection)
Right now, when we do info mice and we've added a usb tablet, we don't see ituntil the guest starts using the tablet. We implement this behavior in order...
Add kbd_mouse_has_absolute()
kbd_mouse_is_absolute tells us whether the current mouse handler is an absolutedevice. kbd_mouse_has_absolute tells us whether we have any device that iscapable of absolute input.
This lets us tell a user that they have configured an absolute device but that...
Add notifier for mouse mode changes
Right now, DisplayState clients rely on polling the mouse mode to determinewhen the device is changed to an absolute device. Use a notification list toadd an explicit notification.
Expose whether a mouse is an absolute device via QMP and the human monitor.
For QMP, we just add an attribute which is backwards compatible. For the humanmonitor, we add (absolute) to the end of the line.
input: make vnc use mouse mode notifiers
When we switch to absolute mode, we send out a notification (if the clientsupports it). Today, we only send this notification when the client sends usa mouse event and we're in the wrong mode.
sdl: use mouse mode notifier
Today we poll the mouse mode whenever there is a mouse movement. There is asubtle 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...
Add exit notifiers
Like atexit() but with state
Convert atexit users to exit_notifier
All of these users have global state so we really don't see a benefit fromexit_notifier. However, using exit_notifier means that there's one lessjustification for having global state in the first place.
tap: invoke downscript when we exit abnormally
Right now, downscript is not invoked reliably. If you execute 'quit' from themonitor, it won't be invoked.
This fixes that by converting tap to use an exit_notifier to execute thedownscript. In this case, allowing an exit notifier to include state is...
View all revisions | View revisions
Also available in: Atom