mirror of
https://github.com/reactos/reactos.git
synced 2025-05-08 11:24:14 +00:00
Don't activate invisible windows
svn path=/trunk/; revision=9774
This commit is contained in:
parent
84970bfa09
commit
db14b748c7
1 changed files with 7 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* 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>
|
#include <w32k.h>
|
||||||
|
@ -151,6 +151,12 @@ IntSetForegroundAndFocusWindow(PWINDOW_OBJECT Window, PWINDOW_OBJECT FocusWindow
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (0 == (Window->Style & WS_VISIBLE))
|
||||||
|
{
|
||||||
|
DPRINT("Failed - Invisible\n");
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
PrevForegroundQueue = IntGetFocusMessageQueue();
|
PrevForegroundQueue = IntGetFocusMessageQueue();
|
||||||
if (PrevForegroundQueue != 0)
|
if (PrevForegroundQueue != 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue