forked from 12to11/12to11
Fix initialization of server time overflow timer
* time.c (StartAlarms): Fix comment. Initialize overflow timer A with negative delta.
This commit is contained in:
parent
f4194133f9
commit
b0815b0b8c
1 changed files with 5 additions and 2 deletions
7
time.c
7
time.c
|
@ -182,7 +182,7 @@ StartAlarms (XSyncCounter counter, XSyncValue current_value)
|
|||
| XSyncCAValue | XSyncCAEvents);
|
||||
|
||||
/* Start the first kind of alarm. This alarm assumes that the
|
||||
counter does not wrap around along with the server time.
|
||||
counter does wrap around along with the server time.
|
||||
|
||||
The protocol allows for more kinds of server behavior, but all
|
||||
servers either implement the counter as one that wraps around
|
||||
|
@ -199,10 +199,13 @@ StartAlarms (XSyncCounter counter, XSyncValue current_value)
|
|||
/* Set the trigger and ask for events. */
|
||||
attributes.trigger = trigger;
|
||||
attributes.events = True;
|
||||
XSyncIntToValue (&attributes.delta, -1);
|
||||
|
||||
/* Create the alarm. */
|
||||
alarm_a = XSyncCreateAlarm (compositor.display,
|
||||
value_mask, &attributes);
|
||||
value_mask | XSyncCADelta,
|
||||
&attributes);
|
||||
XSync (compositor.display, False);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue