diff --git a/dix/events.c b/dix/events.c index 4006c2992..59688c73c 100644 --- a/dix/events.c +++ b/dix/events.c @@ -304,6 +304,9 @@ XItoCoreType(int xitype) coretype = KeyPress; else if (xitype == DeviceKeyRelease) coretype = KeyRelease; + + if (coretype == 0) + ErrorF("[dix] Cannot convert type %d to core.\n", xitype); return coretype; }