summaryrefslogtreecommitdiff
path: root/Xext
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2013-10-16 13:01:01 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2013-10-18 13:42:20 +1000
commit2efe49c1029f959fe80879bcf50df42e8b80451d (patch)
tree66d0beb308987a81cc4a235c081ecd206df45841 /Xext
parent5c7cfd4c6978834551848e1be62af240102e39b5 (diff)
sync: always call BracketValues when recalculating upper/lower brackets
Both ServertimeBracketValues and IdleTimeBracketValues copy the value into there SysCounter privates. Call it for a NULL set as well, so we don't end up with stale pointers and we can remove the block/wakeup handlers. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'Xext')
-rw-r--r--Xext/sync.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Xext/sync.c b/Xext/sync.c
index f93ac18aa..eaf063741 100644
--- a/Xext/sync.c
+++ b/Xext/sync.c
@@ -1058,9 +1058,8 @@ SyncComputeBracketValues(SyncCounter * pCounter)
}
} /* end for each trigger */
- if (pnewgtval || pnewltval) {
- (*psci->BracketValues) ((pointer) pCounter, pnewltval, pnewgtval);
- }
+ (*psci->BracketValues) ((pointer) pCounter, pnewltval, pnewgtval);
+
}
/*