dix: print out an error when core type can't be converted.

Helps a bit in tracking down bugs.
This commit is contained in:
Peter Hutterer 2008-01-15 19:15:09 +10:30
parent 2a988ed75b
commit b0bf4308ac
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}