summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dix/events.c4
-rw-r--r--xkb/xkbAccessX.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/dix/events.c b/dix/events.c
index 881e4c529..8c9623bb4 100644
--- a/dix/events.c
+++ b/dix/events.c
@@ -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)
diff --git a/xkb/xkbAccessX.c b/xkb/xkbAccessX.c
index 524bb5392..9bf87142a 100644
--- a/xkb/xkbAccessX.c
+++ b/xkb/xkbAccessX.c
@@ -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)