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:
Peter Hutterer 2009-03-13 15:22:23 +10:00
parent de415743f4
commit f01ee198ff

View File

@ -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);