[Spice-devel] [RFC PATCH vdagent 13/16] VDAgent: Fixing primary display detachment issue

Dmitry Fleytman dmitry at daynix.com
Mon Jul 18 06:34:47 UTC 2016


From: Sameeh Jubran <sameeh at daynix.com>

After detaching the primary display (when multi monitors are connected)
the detached monitor fails to reattach which leads to other issues with
arbitrary resolution of attached monitors.

The problem is when Vdagent marks the detached monitor as active, it
dosen't apply the changes and thus the monitor fails to attach. This
patch fixes the issue by applying the changes after marking the monitor
as active.

Signed-off-by: Sameeh Jubran <sameeh at daynix.com>
Signed-off-by: Dmitry Fleytman <dmitry at daynix.com>
---
 vdagent/display_configuration.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/vdagent/display_configuration.cpp b/vdagent/display_configuration.cpp
index 19641e9..f20605a 100644
--- a/vdagent/display_configuration.cpp
+++ b/vdagent/display_configuration.cpp
@@ -865,6 +865,7 @@ bool CCD::set_path_state(LPCTSTR device_name, MONITOR_STATE new_state)
     }
     else {
         path->flags = path->flags | DISPLAYCONFIG_PATH_ACTIVE;
+        set_display_config();
     }
     return true;
 }
-- 
1.8.3.1



More information about the Spice-devel mailing list