[virt-tools-list] [PATCH 2/2] console/spice: in multi-head cases, it should display first channel

Marc-André Lureau marcandre.lureau at redhat.com
Tue Apr 26 14:51:20 UTC 2011


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




More information about the virt-tools-list mailing list