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

Side by Side 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, 3 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 This is a probably-wrong fix for an issue where autorepeat
2 is disabled for keys assigned by XKB. As far as I can tell,
3 XKB has the correct autorepeat settings for the keys before
4 a completely-empty autorepeat array from X is copied over
5 it; then the XKB array is copied back to X. This makes us
6 skip the first copy.
7
8 diff --git a/xkb/xkbUtils.c b/xkb/xkbUtils.c
9 index 75e243c..bceb55c 100644
10 --- a/xkb/xkbUtils.c
11 +++ b/xkb/xkbUtils.c
12 @@ -342,9 +342,6 @@ CARD8 * repeat;
13 xkb= xkbi->desc;
14 repeat= xkb->ctrls->per_key_repeat;
15
16 - if (pXDev->kbdfeed)
17 - memcpy(repeat,pXDev->kbdfeed->ctrl.autoRepeats,32);
18 -
19 XkbUpdateDescActions(xkb,first,num,changes);
20
21 if ((pXDev->kbdfeed)&&
OLDNEW
« 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