diff options
author | Hans de Goede <hdegoede@redhat.com> | 2010-10-07 18:35:58 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2010-10-15 20:10:41 +0200 |
commit | 8ebaa25e0be2af544e867d8e87f2fddcb27fc8de (patch) | |
tree | 33c853dc4d4ca4e2ef6f8fc2876453da71ed34af | |
parent | f664654e41fcf6ddef30af0855f757a454b5aac3 (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.c | 3 |
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, |