]> git.proxmox.com Git - mirror_qemu.git/commitdiff
ui: deprecate legacy -show-cursor option
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 31 Jan 2020 11:56:03 +0000 (12:56 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 12 Feb 2020 12:25:17 +0000 (13:25 +0100)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
qemu-deprecated.texi
vl.c

index 017b750ca8e2b77bfbd3444484ff363ccba2bc62..0671c26c806e2faf517923a0babbbee456d35317 100644 (file)
@@ -148,6 +148,11 @@ QEMU 5.0 introduced an alternative syntax to specify the size of the translation
 block cache, @option{-accel tcg,tb-size=}.  The new syntax deprecates the
 previously available @option{-tb-size} option.
 
+@subsection -show-cursor option (since 5.0)
+
+Use @option{-display sdl,show-cursor=on} or
+ @option{-display gtk,show-cursor=on} instead.
+
 @section QEMU Machine Protocol (QMP) commands
 
 @subsection change (since 2.5.0)
diff --git a/vl.c b/vl.c
index 62efcd15c0bfe800676496cfd46f16be7eb3ad64..001be469c2e931861591047714d1583d23c20620 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -3562,6 +3562,8 @@ int main(int argc, char **argv, char **envp)
                 no_shutdown = 1;
                 break;
             case QEMU_OPTION_show_cursor:
+                warn_report("The -show-cursor option is deprecated, "
+                            "use -display {sdl,gtk},show-cursor=on instead");
                 dpy.has_show_cursor = true;
                 dpy.show_cursor = true;
                 break;