summaryrefslogtreecommitdiff
path: root/randr/randr.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@guitar.keithp.com>2006-12-12 22:59:03 -0800
committerDave Airlie <airlied@linux.ie>2006-12-15 18:32:18 +1100
commit628c7daeb12713d28e85e6b49fa037a7748dff83 (patch)
tree13f7168a314fdb9ba508766816962f624217b730 /randr/randr.c
parentd742025f435f3eb7458cf8284d59300bc9a850aa (diff)
RandR: config time updates when hardware config changes.
The config time in the RandR protocol reflects when the hardware state has changed. It was getting changed anytime the driver changed the usage of the hardware as well. (cherry picked from 98d18a6578130adb411ca4bcc776fcb7e07f189f commit)
Diffstat (limited to 'randr/randr.c')
-rw-r--r--randr/randr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/randr/randr.c b/randr/randr.c
index 147df8c2c..1470035ca 100644
--- a/randr/randr.c
+++ b/randr/randr.c
@@ -415,7 +415,11 @@ RRTellChanged (ScreenPtr pScreen)
if (pScrPriv->changed)
{
UpdateCurrentTime ();
- pScrPriv->lastConfigTime = currentTime;
+ if (pScrPriv->configChanged)
+ {
+ pScrPriv->lastConfigTime = currentTime;
+ pScrPriv->configChanged = FALSE;
+ }
pScrPriv->changed = FALSE;
WalkTree (pScreen, TellChanged, (pointer) pScreen);
for (i = 0; i < pScrPriv->numOutputs; i++)