summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/main.js b/main.js
index 173ff97..6976f9c 100644
--- a/main.js
+++ b/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)
{