Xi: only DeliverFocusedEvents if the event is not a pointer event.

A pointer device may have a focus class, but even if so, pointer events must
be delivered to the sprite window, not the focus window.
This commit is contained in:
Peter Hutterer 2008-04-10 14:36:57 +09:30
commit a88386ee27
3 changed files with 30 additions and 3 deletions

View file

@ -615,6 +615,7 @@ extern int XItoCoreType(int xi_type);
extern Bool DevHasCursor(DeviceIntPtr pDev);
extern Bool IsPointerDevice( DeviceIntPtr dev);
extern Bool IsKeyboardDevice(DeviceIntPtr dev);
extern Bool IsPointerEvent(xEvent* xE);
/*
* These are deprecated compatibility functions and will be removed soon!