Fix infinite loop with glastXFocusWindow.

This commit is contained in:
Gerard Patel 1999-09-22 15:16:50 +00:00 committed by Alexandre Julliard
parent 251147741c
commit 99b68252a1

View file

@ -304,6 +304,7 @@ static void EVENT_ProcessEvent( XEvent *event )
XFocusChangeEvent *xfocChange = (XFocusChangeEvent*)event;
glastXFocusWin = xfocChange->window;
if (!hWnd || bUserRepaintDisabled) return;
if (GetWindowLongA( hWnd, GWL_STYLE ) & WS_DISABLED) glastXFocusWin = 0;
EVENT_FocusOut( hWnd, (XFocusChangeEvent*)event );
break;
}