Commit 99b68252 authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard

Fix infinite loop with glastXFocusWindow.

parent 25114774
...@@ -304,6 +304,7 @@ static void EVENT_ProcessEvent( XEvent *event ) ...@@ -304,6 +304,7 @@ static void EVENT_ProcessEvent( XEvent *event )
XFocusChangeEvent *xfocChange = (XFocusChangeEvent*)event; XFocusChangeEvent *xfocChange = (XFocusChangeEvent*)event;
glastXFocusWin = xfocChange->window; glastXFocusWin = xfocChange->window;
if (!hWnd || bUserRepaintDisabled) return; if (!hWnd || bUserRepaintDisabled) return;
if (GetWindowLongA( hWnd, GWL_STYLE ) & WS_DISABLED) glastXFocusWin = 0;
EVENT_FocusOut( hWnd, (XFocusChangeEvent*)event ); EVENT_FocusOut( hWnd, (XFocusChangeEvent*)event );
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment