diff options
author | Jeremy White <jwhite@codeweavers.com> | 2017-03-07 13:07:41 -0600 |
---|---|---|
committer | Jeremy White <jwhite@codeweavers.com> | 2017-03-07 13:29:25 -0600 |
commit | 2fa7c65144c0eece5bb6d359266f951ed6a37a56 (patch) | |
tree | cffa66c26bbb4403d54620d61f356d666fd1713f | |
parent | 4ea12e87a222c5c5df3c3ed3838561505d6c4cc5 (diff) |
When offered multiple heads, generate a warning, rather than failing in subtle ways.
-rw-r--r-- | main.js | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -145,7 +145,12 @@ SpiceMainConn.prototype.process_channel_message = function(msg) chan_id : chans.channels[i].id }; if (chans.channels[i].type == SPICE_CHANNEL_DISPLAY) - this.display = new SpiceDisplayConn(conn); + { + if (this.display !== undefined) + this.log_warn("The spice-html5 client does not handle multiple heads."); + else + this.display = new SpiceDisplayConn(conn); + } else if (chans.channels[i].type == SPICE_CHANNEL_INPUTS) { this.inputs = new SpiceInputsConn(conn); |