What's the meaning of XSyncAlarmNotify ?
daniel at fooishbar.org
Mon Dec 6 07:09:17 PST 2010
On Mon, Dec 06, 2010 at 11:53:37AM +0800, danny wrote:
> >> And why sometimes the xevent->type is not right? (if the event_base = 96 ,
> >> then sometimes the xevent->type always be 98 but not 97)
> >"Sometimes" before "always" sounds pretty confusing to me. :)
> Those codes are from gnome-power-manager program, it will judge the xevent->type, and when it works normally, the xevent->type will be equal with event_base + XSyncAlarmNotify(it is defined as 1), but sometimes the program will become abnormal , then after print the value of xevent->type we found that it will be "event_base + 2" but not "event_base + 1" at this situation.
Sounds like you're receiving a different event then; if you know what
that event is, then great, else just ignore it in your handler, I guess.
(In other words, if the event type isn't XSyncAlarmNotify, then it's not
an XSyncAlarmNotify event.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: Digital signature
More information about the xorg-devel