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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Sameeh Jubran <sameeh@xxxxxxxxxx>

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@xxxxxxxxxx>
Signed-off-by: Dmitry Fleytman <dmitry@xxxxxxxxxx>
---
 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

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]