mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-31 18:20:08 +01:00
dix: ProcSendEvent shouldn't use inputInfo.keyboard directly.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
12aeddf5ad
commit
e8094d8f3f
1 changed files with 4 additions and 2 deletions
|
|
@ -4759,7 +4759,9 @@ ProcSendEvent(ClientPtr client)
|
|||
{
|
||||
WindowPtr pWin;
|
||||
WindowPtr effectiveFocus = NullWindow; /* only set if dest==InputFocus */
|
||||
SpritePtr pSprite = PickPointer(client)->spriteInfo->sprite;
|
||||
DeviceIntPtr dev = PickPointer(client);
|
||||
DeviceIntPtr keybd = GetPairedDevice(dev);
|
||||
SpritePtr pSprite = dev->spriteInfo->sprite;
|
||||
REQUEST(xSendEventReq);
|
||||
|
||||
REQUEST_SIZE_MATCH(xSendEventReq);
|
||||
|
|
@ -4793,7 +4795,7 @@ ProcSendEvent(ClientPtr client)
|
|||
pWin = pSprite->win;
|
||||
else if (stuff->destination == InputFocus)
|
||||
{
|
||||
WindowPtr inputFocus = inputInfo.keyboard->focus->win;
|
||||
WindowPtr inputFocus = (keybd) ? keybd->focus->win : NoneWin;
|
||||
|
||||
if (inputFocus == NoneWin)
|
||||
return Success;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue