commit | 73a26fa4da44d1cc4ecab5ab3d75d89080ba7e95 | [log] [tgz] |
---|---|---|
author | Adrian Thurston <adriant@corel.com> | Sun Oct 24 17:23:52 1999 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Sun Oct 24 17:23:52 1999 +0000 |
tree | 9a74142674ca27cebe516e5f047ab73cf0bf4ad1 | |
parent | f2d99ee56ad5274c3ac209ba3d63b3c1e5f9084d [diff] [blame] |
Do not set focus to a disabled window.
diff --git a/windows/focus.c b/windows/focus.c index d2d6c63..db8cd3c 100644 --- a/windows/focus.c +++ b/windows/focus.c
@@ -95,6 +95,9 @@ 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 )