[PATCH 1/2] randr: Don't recurse into mieqProcessInputEvents() from RRTellChanged().

Andy Ritger aritger at nvidia.com
Thu Jun 14 09:15:37 PDT 2012


Call UpdateCurrentTimeIf(), not UpdateCurrentTime(), from RRTellChanged().
The latter calls ProcessInputEvents(), which can trigger a recursion
into mieqProcessInputEvents().  The former omits the call to
ProcessInputEvents().

Signed-off-by: Andy Ritger <aritger at nvidia.com>
---
 randr/randr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/randr/randr.c b/randr/randr.c
index a64aae3..4d4298a 100644
--- a/randr/randr.c
+++ b/randr/randr.c
@@ -416,7 +416,7 @@ RRTellChanged(ScreenPtr pScreen)
     int i;
 
     if (pScrPriv->changed) {
-        UpdateCurrentTime();
+        UpdateCurrentTimeIf();
         if (pScrPriv->configChanged) {
             pScrPriv->lastConfigTime = currentTime;
             pScrPriv->configChanged = FALSE;
-- 
1.7.7



More information about the xorg-devel mailing list