summaryrefslogtreecommitdiff
path: root/randr/rrcrtc.c
diff options
context:
space:
mode:
authorGustavo Pichorim Boiko <boiko@mandriva.com>2007-07-23 18:27:41 -0300
committerKeith Packard <keithp@neko.keithp.com>2007-07-23 14:47:45 -0700
commit5b424b562eee863b11571de4cd0019cd9bc5b379 (patch)
tree535e321805973853b7fce6fb62730e1a70044eac /randr/rrcrtc.c
parent7da38bb6a15247948c90e00a59230453fcf13cbd (diff)
Set the crtc before the output change is notified
Set the new randr crtc of the output before the output change notification is delivered to the clients. Remove RROutputSetCrtc as it is not really necessary. All we have to do is set the output's crtc on RRCrtcNotify
Diffstat (limited to 'randr/rrcrtc.c')
-rw-r--r--randr/rrcrtc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c
index 3ce9e2155..db5007e28 100644
--- a/randr/rrcrtc.c
+++ b/randr/rrcrtc.c
@@ -134,6 +134,7 @@ RRCrtcNotify (RRCrtcPtr crtc,
break;
if (j == crtc->numOutputs)
{
+ outputs[i]->crtc = crtc;
RROutputChanged (outputs[i], FALSE);
RRCrtcChanged (crtc, FALSE);
}
@@ -149,6 +150,7 @@ RRCrtcNotify (RRCrtcPtr crtc,
break;
if (i == numOutputs)
{
+ crtc->outputs[j]->crtc = NULL;
RROutputChanged (crtc->outputs[j], FALSE);
RRCrtcChanged (crtc, FALSE);
}