The main channel only relied on
VD_AGENT_DISPLAY_CONFIG_FLAG_SET_COLOR_DEPTH to set color depth when
connecting to a guest. However, that doesn't seem to be
enough. Instead send given color depth with monitor configuration.

Fix --spice-color-depth option not "apparently" working.
---
 gtk/channel-main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gtk/channel-main.c b/gtk/channel-main.c
index bd64662..efb551e 100644
--- a/gtk/channel-main.c
+++ b/gtk/channel-main.c
@@ -838,7 +838,7 @@ gboolean spice_main_send_monitor_config(SpiceMainChannel 
*channel)
     for (i = 0; i < SPICE_N_ELEMENTS(c->display); i++) {
         if (!c->display[i].enabled)
             continue;
-        mon->monitors[j].depth  = 32;
+        mon->monitors[j].depth  = c->display_color_depth;
         mon->monitors[j].width  = c->display[j].width;
         mon->monitors[j].height = c->display[j].height;
         mon->monitors[j].x = c->display[j].x;
-- 
1.7.7.6

_______________________________________________
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to