On Thu, Apr 30, 2009 at 02:44:56PM +0200, Pierre Ossman wrote:
> There exists client that send repeated "down" events on automatic key
> repeats, and those that send pairs of "up" and "down". Usually this
> behaviour depends on the platform on which the client runs.
> 
> Since only the repeated "down" case allows the server to tell the
> difference between automatic and manual key repeats, clarify that the
> "down" repeat method is the preferred.

FWIW, gtk-vnc used to accidentally handle key repeat by sending
repeated "down" events with no corresponding up events. This 
confused some servers, such that no they only registered the
first, and then ignored all following 'down' events. So we 
switched GTK-VNC over to generating explict down+up events when
keyrepeating

It is also not, in general, possible to mandate that key repeat
takes place on the client. Where VNC the server is attached to
a X server / other desktop service, it might be possible to disable
server side repeat, but in the case of a VNC server attached to
a virtual machine this is impossible. The VNC server has no control
over how the X server inside the guest deals with key presses.

Ultimately it seems to me that an explicit extension would be needed 
to  indicate whether a server performs server side repeat or not, and
thus allow client to turn its own auto-repeat on/off, and specify
that server side repeat is default if the extension isn't available

Daniel
-- 
|: http://berrange.com/     -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://freshmeat.net/~danielpb/    -o-   http://gtk-vnc.sourceforge.net :|

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
tigervnc-rfbproto mailing list
tigervnc-rfbproto@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-rfbproto

Reply via email to