mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-26 01:59:57 +00:00
dix GetSpriteWindow() adjusted for MPX
added device dependency for MPX to DoEnterLeaveEvents, EnterLeaveEvents, EnterNotifies, LeaveNotifies and FixUpEventFromWindow.
This commit is contained in:
parent
70383105de
commit
8c16f21d5d
6 changed files with 86 additions and 40 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue