mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-html5
synced 2025-12-27 23:00:45 +00:00
display: Only use display channel with id 0
spice-html5 does not support multiple display channels, and will only use the first one offered by spice-server, and ignore the others. This can cause issues when using a VM with a configured but unused org.spice-space.stream.0 spice port as this will create a 'fake' display channel which is offered by spice-server before the usual qxl display channel. This commit favours the display channel with id 0 rather than picking the first one. Signed-off-by: Christophe Fergeau <cfergeau@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
969fe1fb68
commit
f9f700ee54
7
main.js
7
main.js
@ -146,10 +146,11 @@ SpiceMainConn.prototype.process_channel_message = function(msg)
|
||||
};
|
||||
if (chans.channels[i].type == SPICE_CHANNEL_DISPLAY)
|
||||
{
|
||||
if (this.display !== undefined)
|
||||
this.log_warn("The spice-html5 client does not handle multiple heads.");
|
||||
else
|
||||
if (chans.channels[i].id == 0) {
|
||||
this.display = new SpiceDisplayConn(conn);
|
||||
} else {
|
||||
this.log_warn("The spice-html5 client does not handle multiple heads.");
|
||||
}
|
||||
}
|
||||
else if (chans.channels[i].type == SPICE_CHANNEL_INPUTS)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user