Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(246)

Unified Diff: x11-base/xorg-server/files/1.7.6-fix-xkb-autorepeat.patch

Issue 3364001: X: Map Alt-Up and Alt-Down to Page Up and Page Down. (Closed) Base URL: http://git.chromium.org/git/chromiumos-overlay.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | x11-base/xorg-server/files/1.7.6-fix-xkb-redirect-key.patch » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: x11-base/xorg-server/files/1.7.6-fix-xkb-autorepeat.patch
diff --git a/x11-base/xorg-server/files/1.7.6-fix-xkb-autorepeat.patch b/x11-base/xorg-server/files/1.7.6-fix-xkb-autorepeat.patch
new file mode 100644
index 0000000000000000000000000000000000000000..8bad5abc5ad3958f6d73c55c67d3883ac775db18
--- /dev/null
+++ b/x11-base/xorg-server/files/1.7.6-fix-xkb-autorepeat.patch
@@ -0,0 +1,21 @@
+This is a probably-wrong fix for an issue where autorepeat
+is disabled for keys assigned by XKB. As far as I can tell,
+XKB has the correct autorepeat settings for the keys before
+a completely-empty autorepeat array from X is copied over
+it; then the XKB array is copied back to X. This makes us
+skip the first copy.
+
+diff --git a/xkb/xkbUtils.c b/xkb/xkbUtils.c
+index 75e243c..bceb55c 100644
+--- a/xkb/xkbUtils.c
++++ b/xkb/xkbUtils.c
+@@ -342,9 +342,6 @@ CARD8 * repeat;
+ xkb= xkbi->desc;
+ repeat= xkb->ctrls->per_key_repeat;
+
+- if (pXDev->kbdfeed)
+- memcpy(repeat,pXDev->kbdfeed->ctrl.autoRepeats,32);
+-
+ XkbUpdateDescActions(xkb,first,num,changes);
+
+ if ((pXDev->kbdfeed)&&
« no previous file with comments | « no previous file | x11-base/xorg-server/files/1.7.6-fix-xkb-redirect-key.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698