Currently, it may pick up second display first. This patch makes sure
to display the primary display.
---
 src/virtManager/console.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/virtManager/console.py b/src/virtManager/console.py
index aaf81c7..7088041 100644
--- a/src/virtManager/console.py
+++ b/src/virtManager/console.py
@@ -445,6 +445,11 @@ class SpiceViewer(Viewer):
 
         if type(channel) == spice.DisplayChannel:
             channel_id = channel.get_property("channel-id")
+
+            if channel_id != 0:
+                logging.debug("Multi-head unsupported")
+                return
+
             self.display_channel = channel
             self.display = spice.Display(self.spice_session, channel_id)
             
self.console.window.get_widget("console-vnc-viewport").add(self.display)
-- 
1.7.4

_______________________________________________
virt-tools-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virt-tools-list

Reply via email to