Hi,

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.)

Cheers,
Daniel

Attachment: signature.asc
Description: Digital signature

_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to