]> git.proxmox.com Git - qemu.git/commit
console: allow pinning displaychangelisteners to consoles
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 15 Mar 2013 14:45:54 +0000 (15:45 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 16 Apr 2013 07:26:20 +0000 (09:26 +0200)
commit284d1c6b3bf4ece6278f4b9831c7192e3777290c
treea768e1d5c63c5404f0c239b1488bc2935775f35c
parent81c0d5a66295024d0a42e3d28efcd102a32f93c3
console: allow pinning displaychangelisteners to consoles

DisplayChangeListener gets a new QemuConsole field, which can be set to
non-NULL before registering.  This will pin the QemuConsole, so that
particular DisplayChangeListener will not follow console switches.

spice+gtk (which don't support text console input anyway) are switched
over to be pinned to console 0, which usually is the graphical display.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/qxl.c
include/ui/console.h
include/ui/spice-display.h
ui/console.c
ui/gtk.c
ui/spice-display.c