After executing:

eval `dbus-launch --sh-syntax --exit-with-session`

in a xterm window, then keyboard events are occasionally lost. If you type, say, 1234567890, you will actually end up with something like 12356890. It's

The problem is actually not limited to Xvnc, I've been able to reproduce it on a wide range of Xservers and platforms:

TigerVNC, X.Org 1.5.3: fails
xorg-x11-server-Xvfb-1.6.1-6.fc11.x86_64: fails
xorg-x11-server-Xvfb-1.5.3-15.fc10.i386: fails
xorg-x11-server-Xvfb-1.5.2-6.fc9.x86_64: fails (many events lost)
xorg-x11-server-Xorg-1.6.0-16.fc11.x86_64: fails
xorg-x11-server-Xorg-1.5.2-6.fc9.x86_64: fails
xorg-x11-server-Xorg-1.3.0.0-47.fc8: fails

In the Xvfb case, I was simulating keypresses using XSendEvent. If you want to try this yourself, it's quite simple:

1. Login on the console, or unset XAUTHORITY.

2. xinit -- :47

3. eval `dbus-launch --sh-syntax --exit-with-session`

4. Start typing,

It seems like the rate of lost keys is basically one per second: By typing one character per second, the problem is most easily triggered.

Using Wireshark, I've seen that all KeyPress events are actually delivered to the application. It happens with both xterm and gnome-terminal, both with bash and csh. I guess what's left is either:

1) A bug that's present in both xterm and gnome-terminal (seems unlikely)

or

2) Some kind of bug in libX11


Best regards, ---
Peter Åstrand           ThinLinc Chief Developer
Cendio AB               http://www.cendio.com
Wallenbergs gata 4
583 30 Linköping        Phone: +46-13-21 46 00
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Tigervnc-devel mailing list
Tigervnc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-devel

Reply via email to