summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2010-10-07 18:35:58 +0200
committerSøren Sandmann Pedersen <ssp@redhat.com>2011-01-26 08:12:18 -0500
commit50e4a57bbe7535d289116c93fe79d20a435fb1ef (patch)
tree33c853dc4d4ca4e2ef6f8fc2876453da71ed34af
parent0737c92f266a72a7d0c892bead5a77795bc06e12 (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,