From 73a26fa4da44d1cc4ecab5ab3d75d89080ba7e95 Mon Sep 17 00:00:00 2001 From: Adrian Thurston Date: Sun, 24 Oct 1999 17:23:52 +0000 Subject: [PATCH] Do not set focus to a disabled window. --- windows/focus.c | 3 +++ 1 file changed, 3 insertions(+) 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 )