Re: How to convert the server time in xEvent to system time?

2004-08-10 Thread Oliver Welter
Am 11.08.2004 00:31:59 schrieb(en) Weidong Cui:
Hi, There,
xEvent.u.keyButtonPointer.time (aka 'server time'?), defined in
X11/Xproto.h, indicates the number of milliseconds elapsed since the  
X
server started.  I want to convert it to an absolute time which  
then
can
be compared with times recorded by gettimeofday () in some other
program.
Unfortunately, after spending a lot of time, I still can't find out
how to
do it.  If you happen to know how to do it, can you please tell me?

Thanks a lot!
Weidong Cui
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

I don't know much about this, but I would suggest, that you use the  
time-function to get the time in seconds.
You divide the number of milliseconds to get seconds and then subtract  
the values.
You get the time of the start of the X-Server in seconds.

Maybe you can use this idea
Oliver Welter
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel


Re: key-bug?

2003-02-21 Thread Oliver Welter
I had the same problem, but I solved it with the changing of the
keyboard-model:

setxkbmap -model pc102

I also tried to change this in /etc/X11/XF6Config
but it didn't worked.

For some unexpected reason the X-Server doesn't pay attention to the config-file.

I was not able to change the model or even the language.

It refers to standard model pc101 everytime I start the X-Server.
___
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel