mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
dix: print out an error when core type can't be converted.
Helps a bit in tracking down bugs.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user