From 9d0ddb12cb74a04ccd007ad884137a4fdaf39b44 Mon Sep 17 00:00:00 2001 From: Joachim Breuer Date: Tue, 12 Apr 2022 19:33:45 +0200 Subject: [PATCH] Initialize pScrn->{width, height} from primary ... instead of pScrn->currentMode, the latter is not initialized in xorg-server-21.1.3 --- src/qxl_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qxl_driver.c b/src/qxl_driver.c index 80d021b..009e79a 100644 --- a/src/qxl_driver.c +++ b/src/qxl_driver.c @@ -807,8 +807,8 @@ qxl_screen_init (SCREEN_INIT_ARGS_DECL) CHECK_POINT (); - pScreen->width = pScrn->currentMode->HDisplay; - pScreen->height = pScrn->currentMode->VDisplay; + pScreen->width = qxl->primary_mode.x_res; + pScreen->height = qxl->primary_mode.y_res; if (!xf86CrtcScreenInit (pScreen)) return FALSE;