dix: FixUpEventFromWindow mustn't scramble non-device events.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2009-08-20 10:52:24 +10:00
parent c73cd3b265
commit ef75301854

View File

@ -2258,7 +2258,10 @@ FixUpEventFromWindow(
event->evtype == XI_RawKeyRelease ||
event->evtype == XI_RawButtonPress ||
event->evtype == XI_RawButtonRelease ||
event->evtype == XI_RawMotion)
event->evtype == XI_RawMotion ||
event->evtype == XI_DeviceChanged ||
event->evtype == XI_HierarchyChanged ||
event->evtype == XI_PropertyEvent)
return;
event->root = RootWindow(pDev)->drawable.id;