diff options
Diffstat (limited to 'backends/msmouse.c')
-rw-r--r-- | backends/msmouse.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/msmouse.c b/backends/msmouse.c index 448369fd1c..733ca80f48 100644 --- a/backends/msmouse.c +++ b/backends/msmouse.c @@ -151,6 +151,7 @@ static QemuInputHandler msmouse_handler = { static CharDriverState *qemu_chr_open_msmouse(const char *id, ChardevBackend *backend, ChardevReturn *ret, + bool *be_opened, Error **errp) { ChardevCommon *common = backend->u.msmouse.data; @@ -164,7 +165,7 @@ static CharDriverState *qemu_chr_open_msmouse(const char *id, chr->chr_write = msmouse_chr_write; chr->chr_free = msmouse_chr_free; chr->chr_accept_input = msmouse_chr_accept_input; - chr->explicit_be_open = true; + *be_opened = false; mouse = g_new0(MouseState, 1); mouse->hs = qemu_input_handler_register((DeviceState *)mouse, |