]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
ui: wire up legacy -show-cursor option
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 7 Feb 2020 09:46:13 +0000 (10:46 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 12 Feb 2020 12:25:17 +0000 (13:25 +0100)
Set new show-cursor display option when legacy -show-cursor
is specified on the command line.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
vl.c

diff --git a/vl.c b/vl.c
index 7dcb0879c4977c574a2557123c8ee4713aa9ee30..5419b3d68200ab05a1dff0b8eaeaed04c0764161 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -3554,6 +3554,8 @@ int main(int argc, char **argv, char **envp)
                 break;
             case QEMU_OPTION_show_cursor:
                 cursor_hide = 0;
+                dpy.has_show_cursor = true;
+                dpy.show_cursor = true;
                 break;
             case QEMU_OPTION_uuid:
                 if (qemu_uuid_parse(optarg, &qemu_uuid) < 0) {