summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Grunt <pgrunt@redhat.com>2015-07-29 12:50:17 (GMT)
committerPavel Grunt <pgrunt@redhat.com>2015-07-29 20:50:06 (GMT)
commit39b0ce009ee5b7a335e5c6690617c6f3dc037615 (patch)
tree2a3c200e16f7d04859dc47be90d1f64d8423e4e9
parentc8250d0edbac39ce139df2bd3a574d90c7e8055e (diff)
downloadvirt-viewer-master.zip
virt-viewer-master.tar.gz
virt-viewer-master.tar.xz
session-spice: Use display id instead of monitor id in debug logHEADmaster
Windows guests have monitor id = 0, so the debug log is always the same: "creating spice display (#:0)" for all the displays.
-rw-r--r--src/virt-viewer-session-spice.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/virt-viewer-session-spice.c b/src/virt-viewer-session-spice.c
index 9976291..1649a62 100644
--- a/src/virt-viewer-session-spice.c
+++ b/src/virt-viewer-session-spice.c
@@ -796,7 +796,8 @@ virt_viewer_session_spice_display_monitors(SpiceChannel *channel,
display = g_ptr_array_index(displays, i);
if (display == NULL) {
display = virt_viewer_display_spice_new(self, channel, i);
- g_debug("creating spice display (#:%d)", i);
+ g_debug("creating spice display (#:%d)",
+ virt_viewer_display_get_nth(VIRT_VIEWER_DISPLAY(display)));
g_ptr_array_index(displays, i) = g_object_ref_sink(display);
virt_viewer_session_add_display(VIRT_VIEWER_SESSION(self),
VIRT_VIEWER_DISPLAY(display));