Revision: 4235
http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4235&view=rev
Author: atkac
Date: 2011-01-17 10:45:46 +0000 (Mon, 17 Jan 2011)
Log Message:
-----------
[Bugfix] Disable server-side key autorepeating.
Modified Paths:
--------------
trunk/unix/xserver/hw/vnc/Input.cc
Modified: trunk/unix/xserver/hw/vnc/Input.cc
===================================================================
--- trunk/unix/xserver/hw/vnc/Input.cc 2011-01-17 10:35:46 UTC (rev 4234)
+++ trunk/unix/xserver/hw/vnc/Input.cc 2011-01-17 10:45:46 UTC (rev 4235)
@@ -533,6 +533,9 @@
int mapWidth;
unsigned int i;
int j, k, state, maxKeysPerMod;
+#if XORG >= 17
+ KeybdCtrl ctrl;
+#endif
initInputDevice();
@@ -582,6 +585,18 @@
maxKeyCode = keymap->maxKeyCode;
mapWidth = keymap->mapWidth;
+#if XORG >= 17
+ /*
+ * No server-side key repeating, please. Some clients won't work well,
+ * check https://bugzilla.redhat.com/show_bug.cgi?id=607866.
+ */
+ ctrl = keyboardDev->kbdfeed->ctrl;
+ if (ctrl.autoRepeat != FALSE) {
+ ctrl.autoRepeat = FALSE;
+ XkbSetRepeatKeys(keyboardDev, -1, ctrl.autoRepeat);
+ }
+#endif
+
/* find which modifier Mode_switch is on. */
int modeSwitchMapIndex = 0;
for (i = 3; i < 8; i++) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Tigervnc-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits