[PATCH xf86-qxl 2/2] kms: do not overwrite screen virtualX/Y

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

 



The pScrn->currentMode is the resolution of the first monitor,
not the resolution of the whole virtual screen.

This fixes restarting X when several monitors are enabled.
---
 src/qxl_kms.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/qxl_kms.c b/src/qxl_kms.c
index b6952f3..4ffb4e7 100644
--- a/src/qxl_kms.c
+++ b/src/qxl_kms.c
@@ -286,8 +286,6 @@ Bool qxl_screen_init_kms(SCREEN_INIT_ARGS_DECL)
 	goto out;
     pScrn->displayWidth = pScrn->virtualX;
 
-    pScrn->virtualX = pScrn->currentMode->HDisplay;
-    pScrn->virtualY = pScrn->currentMode->VDisplay;
     if (!qxl_fb_init (qxl, pScreen))
 	goto out;
     
-- 
2.1.0

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://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]