ui: Fix the "-display sdl,window_close=..." parameter
commitbb20b86db9acb7a6f653fd40c45d46a9df6b2a75
authorThomas Huth <thuth@redhat.com>
Wed, 30 Jun 2021 16:32:29 +0000 (30 18:32 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 5 Jul 2021 17:21:05 +0000 (5 19:21 +0200)
treeb52bd981317a5319f3e8cf8b7110ff44462a94c5
parentf6b560bbc1b0120d7737c0efb53f691828d82faa
ui: Fix the "-display sdl,window_close=..." parameter

According to the QAPI schema, there is a "-" and not a "_" between
"window" and "close", and we're also talking about "window-close"
in the long parameter description in qemu-options.hx, so we should
make sure that we rather use the variant with the "-" by default
instead of only allowing the one with the "_" here. The old way
still stays enabled for compatibility, but we deprecate it, so that
we can switch to a QAPIfied parameter one day more easily.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20210630163231.467987-3-thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
docs/system/deprecated.rst
qemu-options.hx
softmmu/vl.c