summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2015-05-13 19:10:06 +0200
committerMarc-André Lureau <marcandre.lureau@redhat.com>2015-05-22 15:59:42 +0200
commit8babd05ea9c196390570928a386f5a17a8a37fb9 (patch)
tree8c4768644bae8a0b1ef84eea2517d0f59a84eaeb
parent16ac8fa8fac56a01050ffa9f0978ae04b1a1efa4 (diff)
kms: do not overwrite screen virtualX/Y
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.
-rw-r--r--src/qxl_kms.c2
1 files changed, 0 insertions, 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;