mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-09 23:22:22 +00:00
XKB: Remove a bunch of mad ifdefs
We have SEEK_SET and size_t, seriously. Also use DebugF instead of ifdef DEBUG, and ditch a couple of random bits that were never used.
This commit is contained in:
parent
0f12a448dc
commit
534fc5140b
16 changed files with 69 additions and 252 deletions
|
|
@ -130,11 +130,9 @@ xEvent xE;
|
|||
xE.u.u.type = type;
|
||||
xE.u.u.detail = keyCode;
|
||||
xE.u.keyButtonPointer.time = GetTimeInMillis();
|
||||
#ifdef DEBUG
|
||||
if (xkbDebugFlags&0x8) {
|
||||
ErrorF("AXKE: Key %d %s\n",keyCode,(xE.u.u.type==KeyPress?"down":"up"));
|
||||
DebugF("AXKE: Key %d %s\n",keyCode,(xE.u.u.type==KeyPress?"down":"up"));
|
||||
}
|
||||
#endif
|
||||
|
||||
if (_XkbIsPressEvent(type))
|
||||
XkbDDXKeyClick(keybd,keyCode,TRUE);
|
||||
|
|
@ -533,10 +531,8 @@ KeySym * sym = XkbKeySymsPtr(xkbi->desc,key);
|
|||
((ctrls->enabled_ctrls&(XkbSlowKeysMask|XkbRepeatKeysMask))==
|
||||
XkbRepeatKeysMask)) {
|
||||
if (BitIsOn(keybd->kbdfeed->ctrl.autoRepeats,key)) {
|
||||
#ifdef DEBUG
|
||||
if (xkbDebugFlags&0x10)
|
||||
ErrorF("Starting software autorepeat...\n");
|
||||
#endif
|
||||
DebugF("Starting software autorepeat...\n");
|
||||
xkbi->repeatKey = key;
|
||||
xkbi->repeatKeyTimer= TimerSet(xkbi->repeatKeyTimer,
|
||||
0, ctrls->repeat_delay,
|
||||
|
|
|
|||
Loading…
Reference in a new issue