[Spice-devel] [PATCH xf86-drv-qxl F14-branch 2/4] Make virtual resolution match actual resolution on startup

Hans de Goede hdegoede at redhat.com
Thu Oct 7 09:48:35 PDT 2010


When setting a Virtual size in xorg.conf, currently there can be
a difference between the actual output resolution (say 1600x1200) and
the virtual resolution (for example 2048x1600). This causes parts
of the desktop too be unreachable because the cursor is bound to
the spicec window and thus one cannot pan over the virtual desktop.

Moreover other parts of the driver don't seem to like this and I've
seen several hangs / crashes which I think are related.
---
 src/qxl_driver.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index d8e687b..3b8728c 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -1180,6 +1180,9 @@ qxl_screen_init(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
     
     pScreen->totalPixmapSize = 100;
 
+    pScrn->virtualX = pScrn->currentMode->HDisplay;
+    pScrn->virtualY = pScrn->currentMode->VDisplay;
+
     if (!fbScreenInit(pScreen, qxl->fb,
 		      pScrn->virtualX, pScrn->virtualY,
 		      pScrn->xDpi, pScrn->yDpi, pScrn->displayWidth,
-- 
1.7.2.2



More information about the Spice-devel mailing list