diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2012-07-06 08:06:10 -0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2012-07-15 19:24:32 +0200 |
commit | 557e23e82b6d738fab6fa6bd28b077dd81437b22 (patch) | |
tree | cbef4a836cdad26453756ab85dd8fc250c2dbad2 /src | |
parent | 47b54dcfd9ba2aa78e0f154a288321bb0ff98dce (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.c | 6 |
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; } |