Fix build with --enable-debug.

[amended by Peter Hutterer]
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Jason Vas Dias 2009-03-03 13:24:54 +10:00 committed by Peter Hutterer
parent 6093d3eb1d
commit e0ed9f16d0
2 changed files with 3 additions and 3 deletions

View File

@ -3673,9 +3673,9 @@ FixKeyState (DeviceEvent *event, DeviceIntPtr keybd)
kptr = &keyc->down[key >> 3];
bit = 1 << (key & 7);
if ((event->type == ET_KeyPress)||(event->type == ET_KeyRelease)) {
if (event->type == ET_KeyPress) {
DebugF("FixKeyState: Key %d %s\n",key,
(((event->type == ET_KeyPress)||(event->type == ET_DeviceKeyPress)) ? "down" : "up"));
((event->type == ET_KeyPress) ? "down" : "up"));
}
if (event->type == ET_KeyPress)

View File

@ -133,7 +133,7 @@ AccessXKeyboardEvent(DeviceIntPtr keybd,
if (xkbDebugFlags&0x8) {
DebugF("[xkb] AXKE: Key %d %s\n", keyCode,
(event->type == ET_KeyPress ? "down" : "up"));
(event.type == ET_KeyPress ? "down" : "up"));
}
if (!_XkbIsPressEvent(type) && isRepeat)