diff --git a/windows/focus.c b/windows/focus.c index d2d6c633e16..db8cd3c975a 100644 --- a/windows/focus.c +++ b/windows/focus.c @@ -95,6 +95,9 @@ HWND WINAPI SetFocus( HWND hwnd ) hwndTop = wndPtr->hwndSelf; } + /* definitely at the top window now */ + if ( wndPtr->dwStyle & ( WS_MINIMIZE | WS_DISABLED) ) goto CLEANUP; + /* Retrieve the message queue associated with this window */ pMsgQ = (MESSAGEQUEUE *)QUEUE_Lock( wndPtr->hmemTaskQ ); if ( !pMsgQ )