From 21ef45d71221b4577330fe3aacfb06afad91ad46 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 28 Feb 2013 11:34:31 +0100 Subject: 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 --- ui/vnc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'ui/vnc.h') 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; -- cgit v1.2.3-55-g7522