Subject: Re: bug#13954: Emacs for Windows: runemacs.exe launches Emacs behind other windows

From: Eli Zaretskii <[email-masked]>
Date: Fri, 15 Mar 2013 13:07:17 +0200

> Date: Thu, 14 Mar 2013 15:35:56 -0700
> From: Daniel Colascione <[email-masked]>
> CC: Andrew Pennebaker <[email-masked]>, 
>  [email-masked]
> 
> On 3/14/2013 9:40 AM, Eli Zaretskii wrote:
> >> Date: Thu, 14 Mar 2013 09:35:29 -0400
> >> From: Andrew Pennebaker <[email-masked]>
> >>
> >> This occurs in Windows XP up to Windows 8, with Emacs v24.2.1.
> > 
> > I cannot reproduce this, neither on XP nor on Windows 7.
> > 
> > Could you try the latest release 24.3?
> 
> How are you launching runemacs.exe? Windows has focus stealing prevention.
> Please review the rules for SetForegroundWindow on MSDN and see whether your use
> case satisfies the conditions mentioned for bringing a window to the fore.

IIRC, if the conditions are not met, the taskbar button that
corresponds to the Emacs frame should flash.  Andrew, do you see this
happening when you launch Emacs?