mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 04:40:02 +01:00
dix: don't use inputInfo.keyboard to get the focus window in ActivateKbdGrab
I'm not sure if that's the right solution, but the other one is wronger.
This commit is contained in:
parent
de415743f4
commit
f01ee198ff
1 changed files with 1 additions and 1 deletions
|
|
@ -1517,7 +1517,7 @@ ActivateKeyboardGrab(DeviceIntPtr keybd, GrabPtr grab, TimeStamp time, Bool pass
|
|||
else
|
||||
oldWin = keybd->spriteInfo->sprite->win;
|
||||
if (oldWin == FollowKeyboardWin)
|
||||
oldWin = inputInfo.keyboard->focus->win;
|
||||
oldWin = keybd->focus->win;
|
||||
if (keybd->valuator)
|
||||
keybd->valuator->motionHintWindow = NullWindow;
|
||||
DoFocusEvents(keybd, oldWin, grab->window, NotifyGrab);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue