mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-06-18 09:38:27 +02:00
problem with max() macro. this one slipped though again
This commit is contained in:
parent
531776becf
commit
4945034792
1 changed files with 1 additions and 1 deletions
|
|
@ -311,7 +311,7 @@ winConfigKeyboard (DeviceIntPtr pDevice)
|
|||
default:
|
||||
case 3: g_winInfo.keyboard.delay = 1000; break;
|
||||
}
|
||||
g_winInfo.keyboard.rate = max(1,kbd_speed);
|
||||
g_winInfo.keyboard.rate = (kbd_speed>0)?kbd_speed:1;
|
||||
winMsgVerb(X_PROBED, 1, "Setting autorepeat to delay=%d, rate=%d\n",
|
||||
g_winInfo.keyboard.delay, g_winInfo.keyboard.rate);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue