dix: un-static FixUpEventFromWindow and deal with focus events too.

This commit is contained in:
Peter Hutterer 2009-03-11 16:08:24 +10:00
parent 4cc6a96d71
commit a4b61cfc78
1 changed files with 2 additions and 1 deletions

View File

@ -2233,7 +2233,8 @@ FixUpEventFromWindow(
event->child = None;
}
if (event->evtype == XI_Enter || event->evtype == XI_Leave)
if (event->evtype == XI_Enter || event->evtype == XI_Leave ||
event->evtype == XI_FocusIn || event->evtype == XI_FocusOut)
((xXIEnterEvent*)event)->same_screen =
(pSprite->hot.pScreen == pWin->drawable.pScreen);