Blame SOURCES/0001-spice-Fix-display-id-in-the-warning-log.patch

48c875
From 073c98cadd5ee8273e73b3081ab5d7199c2b40b4 Mon Sep 17 00:00:00 2001
48c875
From: Snir Sheriber <ssheribe@redhat.com>
48c875
Date: Thu, 29 Dec 2016 15:40:43 +0200
48c875
Subject: [PATCH 01/26] spice: Fix display id in the warning log
48c875
MIME-Version: 1.0
48c875
Content-Type: text/plain; charset=UTF-8
48c875
Content-Transfer-Encoding: 8bit
48c875
48c875
The display id in the warning log is now consistent with the display
48c875
id in the "view->displays->display x" menu item
48c875
48c875
Related: rhbz#1368390
48c875
48c875
Acked-by: Fabiano FidĂȘncio <fabiano@fidencio.org>
48c875
---
48c875
 src/virt-viewer-session-spice.c | 2 +-
48c875
 1 file changed, 1 insertion(+), 1 deletion(-)
48c875
48c875
diff --git a/src/virt-viewer-session-spice.c b/src/virt-viewer-session-spice.c
48c875
index 731f074..c24f94d 100644
48c875
--- a/src/virt-viewer-session-spice.c
48c875
+++ b/src/virt-viewer-session-spice.c
48c875
@@ -915,7 +915,7 @@ virt_viewer_session_spice_display_monitors(SpiceChannel *channel,
48c875
         if (!disabled && fullscreen_mode && self->priv->did_auto_conf &&
48c875
             !display_is_in_fullscreen_mode(self, VIRT_VIEWER_DISPLAY(display))) {
48c875
             g_warning("display %d should not be enabled, disabling",
48c875
-                      virt_viewer_display_get_nth(VIRT_VIEWER_DISPLAY(display)));
48c875
+                      virt_viewer_display_get_nth(VIRT_VIEWER_DISPLAY(display)) + 1);
48c875
             spice_main_set_display_enabled(virt_viewer_session_spice_get_main_channel(self),
48c875
                                            virt_viewer_display_get_nth(VIRT_VIEWER_DISPLAY(display)),
48c875
                                            FALSE);
48c875
-- 
48c875
2.12.0
48c875