dix GetSpriteWindow() adjusted for MPX

added device dependency for MPX to DoEnterLeaveEvents,
	EnterLeaveEvents, EnterNotifies, LeaveNotifies and
	FixUpEventFromWindow.
This commit is contained in:
Peter Hutterer 2006-11-22 17:06:47 +10:30 • committed by Peter Hutterer
commit 8c16f21d5d
6 changed files with 86 additions and 40 deletions

View file

@ -276,9 +276,9 @@ ProcessOtherEvent(xEventPtr xE, register DeviceIntPtr other, int count)
if (grab)
DeliverGrabbedEvent(xE, other, deactivateDeviceGrab, count);
else if (other->focus)
DeliverFocusedEvent(other, xE, GetSpriteWindow(), count);
DeliverFocusedEvent(other, xE, GetSpriteWindow(other), count);
else
DeliverDeviceEvents(GetSpriteWindow(), xE, NullGrab, NullWindow,
DeliverDeviceEvents(GetSpriteWindow(other), xE, NullGrab, NullWindow,
other, count);
if (deactivateDeviceGrab == TRUE)
@ -781,7 +781,7 @@ SendEvent(ClientPtr client, DeviceIntPtr d, Window dest, Bool propagate,
{
WindowPtr pWin;
WindowPtr effectiveFocus = NullWindow; /* only set if dest==InputFocus */
WindowPtr spriteWin = GetSpriteWindow();
WindowPtr spriteWin = GetSpriteWindow(d);
if (dest == PointerWindow)
pWin = spriteWin;