Don't activate invisible windows

svn path=/trunk/; revision=9774
This commit is contained in:
Gé van Geldorp 2004-06-20 22:25:14 +00:00
parent 84970bfa09
commit db14b748c7

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Id: focus.c,v 1.22 2004/05/10 17:07:18 weiden Exp $
* $Id: focus.c,v 1.23 2004/06/20 22:25:14 gvg Exp $
*/
#include <w32k.h>
@ -151,6 +151,12 @@ IntSetForegroundAndFocusWindow(PWINDOW_OBJECT Window, PWINDOW_OBJECT FocusWindow
return FALSE;
}
if (0 == (Window->Style & WS_VISIBLE))
{
DPRINT("Failed - Invisible\n");
return FALSE;
}
PrevForegroundQueue = IntGetFocusMessageQueue();
if (PrevForegroundQueue != 0)
{