summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2012-07-06 08:06:10 -0400
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-07-15 19:24:32 +0200
commit557e23e82b6d738fab6fa6bd28b077dd81437b22 (patch)
treecbef4a836cdad26453756ab85dd8fc250c2dbad2 /src
parent47b54dcfd9ba2aa78e0f154a288321bb0ff98dce (diff)
Avoid calling qxl_update_monitors_config() with invalid config
During startup, the monitors are not yet enabled/set. and we can avoid sending invalid/transient config.
Diffstat (limited to 'src')
-rw-r--r--src/qxl_driver.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index ba2c5b0..9039e50 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -1904,7 +1904,11 @@ qxl_xf86crtc_resize(ScrnInfoPtr scrn, int width, int height)
scrn->virtualX = width;
scrn->virtualY = height;
- qxl_update_monitors_config(qxl);
+
+ // when starting, no monitor is enabled, and count == 0
+ // we want to avoid server/client freaking out with temporary config
+ if (check_crtc(qxl) != 0)
+ qxl_update_monitors_config(qxl);
return TRUE;
}