summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2010-10-07 18:35:58 +0200
committerHans de Goede <hdegoede@redhat.com>2010-10-15 20:10:41 +0200
commit8ebaa25e0be2af544e867d8e87f2fddcb27fc8de (patch)
tree33c853dc4d4ca4e2ef6f8fc2876453da71ed34af
parentf664654e41fcf6ddef30af0855f757a454b5aac3 (diff)
Make virtual resolution match actual resolution on startup
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.
-rw-r--r--src/qxl_driver.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index 3e3beaa..3024829 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -1215,6 +1215,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,