mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
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>
This commit is contained in:
parent
7c20b4a374
commit
21ef45d712
4 changed files with 20 additions and 25 deletions
1
ui/vnc.h
1
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue