randr: only respected changed on the protocol screen
authorDave Airlie <airlied@redhat.com>
Wed, 9 Jan 2013 04:25:43 +0000 (14:25 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 30 Apr 2013 00:08:43 +0000 (10:08 +1000)
We don't want to know about changes on the non-protocol screen,
we will fix up setchanged to make sure non-protocol screens update
the protocol screens when they have a change.

Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
randr/randr.c

index fb0895d..cb6fce7 100644 (file)
@@ -506,7 +506,7 @@ RRTellChanged(ScreenPtr pScreen)
         mastersp = pScrPriv;
     }
 
-    if (pScrPriv->changed) {
+    if (mastersp->changed) {
         UpdateCurrentTimeIf();
         if (mastersp->configChanged) {
             mastersp->lastConfigTime = currentTime;