Skip to content

Commit

Permalink
xkb: Use XkbPerKeyBitArraySize instead of hardcoded value of 32
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyhu committed Sep 30, 2009
1 parent 4970666 commit 7bef78e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xkb/xkbUtils.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,13 +343,13 @@ CARD8 * repeat;
repeat= xkb->ctrls->per_key_repeat;

if (pXDev->kbdfeed)
memcpy(repeat,pXDev->kbdfeed->ctrl.autoRepeats,32);
memcpy(repeat,pXDev->kbdfeed->ctrl.autoRepeats,XkbPerKeyBitArraySize);

XkbUpdateDescActions(xkb,first,num,changes);

if ((pXDev->kbdfeed)&&
(changes->ctrls.enabled_ctrls_changes&XkbPerKeyRepeatMask)) {
memcpy(pXDev->kbdfeed->ctrl.autoRepeats,repeat, 32);
memcpy(pXDev->kbdfeed->ctrl.autoRepeats,repeat, XkbPerKeyBitArraySize);
(*pXDev->kbdfeed->CtrlProc)(pXDev, &pXDev->kbdfeed->ctrl);
}
return;
Expand Down

0 comments on commit 7bef78e

Please sign in to comment.