[Spice-commits] main.js

Jeremy White jwhite at kemper.freedesktop.org
Tue Mar 7 19:29:34 UTC 2017


 main.js |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit 2fa7c65144c0eece5bb6d359266f951ed6a37a56
Author: Jeremy White <jwhite at codeweavers.com>
Date:   Tue Mar 7 13:07:41 2017 -0600

    When offered multiple heads, generate a warning, rather than failing in subtle ways.

diff --git a/main.js b/main.js
index 2d8a1ff..173ff97 100644
--- a/main.js
+++ b/main.js
@@ -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);


More information about the Spice-commits mailing list