summaryrefslogtreecommitdiff
path: root/ui/vnc.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2013-02-28 11:34:31 +0100
committerGerd Hoffmann <kraxel@redhat.com>2013-03-18 10:21:58 +0100
commit21ef45d71221b4577330fe3aacfb06afad91ad46 (patch)
tree80e7115e65cce66068a720a1247ad2939066bf57 /ui/vnc.h
parent7c20b4a374d0016e3fce005690fb428354a56621 (diff)
downloadqemu-21ef45d71221b4577330fe3aacfb06afad91ad46.tar.gz
console: kill DisplayState->opaque
It's broken by design. There can be multiple DisplayChangeListener instances, so they simply can't store state in the (single) DisplayState struct. Try 'qemu -display gtk -vnc :0', watch it crash & burn. With DisplayChangeListenerOps having a more sane interface now we can simply use the DisplayChangeListener pointer to get access to our private data instead. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/vnc.h')
-rw-r--r--ui/vnc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/vnc.h b/ui/vnc.h
index 45d7686843..a96485b8d4 100644
--- a/ui/vnc.h
+++ b/ui/vnc.h
@@ -151,6 +151,7 @@ struct VncDisplay
char *ws_display;
#endif
DisplayState *ds;
+ DisplayChangeListener dcl;
kbd_layout_t *kbd_layout;
int lock_key_sync;
QemuMutex mutex;