mirror of https://github.com/xemu-project/xemu.git
gtk ui: unbreak spice
Merge of the gtk ui brought a initialitation order issue for spice: The using_spice variable isn't set yet when checked, leading to the default UI being activated (additionally to spice remote access). Let's set display_remote when we find a -spice switch on the command line, like we do for vnc. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 1361804550-15858-1-git-send-email-kraxel@redhat.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
864a556e9a
commit
f963e4d0ca
4
vl.c
4
vl.c
|
@ -3767,6 +3767,7 @@ int main(int argc, char **argv, char **envp)
|
||||||
if (!opts) {
|
if (!opts) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
display_remote++;
|
||||||
break;
|
break;
|
||||||
case QEMU_OPTION_writeconfig:
|
case QEMU_OPTION_writeconfig:
|
||||||
{
|
{
|
||||||
|
@ -4006,9 +4007,6 @@ int main(int argc, char **argv, char **envp)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (using_spice) {
|
|
||||||
display_remote++;
|
|
||||||
}
|
|
||||||
if (display_type == DT_DEFAULT && !display_remote) {
|
if (display_type == DT_DEFAULT && !display_remote) {
|
||||||
#if defined(CONFIG_GTK)
|
#if defined(CONFIG_GTK)
|
||||||
display_type = DT_GTK;
|
display_type = DT_GTK;
|
||||||
|
|
Loading…
Reference in New Issue