mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-04 23:28:05 +02: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:
parent
2a988ed75b
commit
b0bf4308ac
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue