DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Win7 Bug - New windows/notifications do not get focus  (Read 13,782 times)

Josh

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 3,411
    • Gathering Badge
    • Official Forum Clown
    • Coding Snacks
    • Plugin Coding Medal
    • Volunteers/Staff
    • Military Service Badge - US Army
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Win7 Bug - New windows/notifications do not get focus
« on: December 13, 2009, 09:46 PM »
I recently upgraded my wife to Windows 7 Pro x64 and have had nothing but good things to say about the switch. Her system is the last in our house to move to Win7 and the first in my home to go x64.

The only issue I am having currently is that new windows popping up, I.E. clicking a folder on the desktop, do not open with focus at times. They appear behind other windows.

Has anyone encountered this and know of a workaround?
Strength in Knowledge

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
Re: Win7 Bug - New windows/notifications do not get focus
« Reply #1 on: December 14, 2009, 01:31 AM »
Are you crazy?!?

Many is the time I wish XP, (and Windows in general), would work that way...please, please, please tell me how you did it :D
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903

zridling

  • Friend of the Site
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 3,299
Re: Win7 Bug - New windows/notifications do not get focus
« Reply #2 on: December 14, 2009, 09:59 PM »
Try running the UI in windows 7 basic. Apparently a few AV programs might be causing this oddity.
- zaine

Innuendo

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,266
Re: Win7 Bug - New windows/notifications do not get focus
« Reply #3 on: December 15, 2009, 12:43 AM »
The only issue I am having currently is that new windows popping up, I.E. clicking a folder on the desktop, do not open with focus at times. They appear behind other windows.

Has anyone encountered this and know of a workaround?

Not only is there no work-around, but this is billed as a new feature of Windows 7. Microsoft has listened to the mass complaints of new windows & dialog boxes stealing focus from apps (How many times have you been on a roll in MS Word or similar typing your heart out & then looked up at the screen and something stole Word's window focus and half of what you typed was lost?) and this is the solution.

Now you can work with your apps without fear of anything stealing its focus freeing you to deal with intrusive dialog boxes in your own time on your terms.

Sorry you hate the new way of doing things, Josh, but MS has gotten quite a few compliments on finally implementing this new behavior.

Josh

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 3,411
    • Gathering Badge
    • Official Forum Clown
    • Coding Snacks
    • Plugin Coding Medal
    • Volunteers/Staff
    • Military Service Badge - US Army
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: Win7 Bug - New windows/notifications do not get focus
« Reply #4 on: December 15, 2009, 12:50 AM »
I personally have no issues with it but my wife, on the other hand, does :-/ And as any married man knows, when your wife is not happy, you aren't happy either.
Strength in Knowledge

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: Win7 Bug - New windows/notifications do not get focus
« Reply #5 on: December 15, 2009, 07:03 AM »
I personally have no issues with it but my wife, on the other hand, does :-/ And as any married man knows, when your wife is not happy, you aren't happy either.
As any married man should know, when your wife is not happy, stuff her with Valium.
- carpe noctem

tranglos

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,081
    • Participated in NANY Challenge Twice
Re: Win7 Bug - New windows/notifications do not get focus
« Reply #6 on: December 15, 2009, 11:49 AM »
How many times have you been on a roll in MS Word or similar typing your heart out & then looked up at the screen and something stole Word's window focus and half of what you typed was lost?)

Not often enough for it to be an issue, and I'm writing all the time. If you touch-type, you see when a box pops up. Maybe people should be installing fewer "helpful" applications that end with -gator or -buddy? :)

Not only is there no work-around, but this is billed as a new feature of Windows 7.

This feature was already present in XP, where you have an option to disable it (i.e. let windows steal focus). Has it been further "improved" in 7? Has it changed?

It's potentially dangerous too, because you may miss notifications that are important (or interesting to you), as they will be obscured by other windows. And it's a source of unending grief for users and coders who *want* a focus-stealing popup in some legitimate scenarios (e.g. when you press a hotkey to bring an application to foreground).

It's always been possible to code for non-intrusive popups (see Calendarscope for a perfect implementation). Users who've had problems with this should have taken the issue with application authors, instead of prodding MS to further hobble the OS.

Now you can work with your apps without fear of anything stealing its focus freeing you to deal with intrusive dialog boxes in your own time on your terms.

It seems to me that Josh is describing something a little different though - you click to start/open a window/application, and it opens but does not receive focus. That would be unbelievably brain-dead, e.g. start Word, then you still have to click it before you can start typing. Not the same as pop-up dialogs from already running apps. Thankfully I haven't observed it on my wife's installation of 7. Josh, could you please confirm?

« Last Edit: December 15, 2009, 11:57 AM by tranglos »

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: Win7 Bug - New windows/notifications do not get focus
« Reply #7 on: December 15, 2009, 12:00 PM »
Focus-stealing is just about never ever legitimate - I, for one, welcome any steps taken to prevent focus-stealing. Unfortunately, at least on XP and below, it was possible to hack around the anti-stealing measures, and fscktarded coders who think they know better are doing that. I think the Windows Update box is a perfect example of something you don't want popping up & stealing focus.

But even "non-fatal" popups are doyc-damn annoying, especially for touch typists who aren't looking at the monitor, and find that they've spent the last minute not typing in their text editor or IDE.

Oh, and legitimate uses like getting focus on hotkey press after application has been hidden are possible.
- carpe noctem

Innuendo

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,266
Re: Win7 Bug - New windows/notifications do not get focus
« Reply #8 on: December 15, 2009, 04:17 PM »
Not often enough for it to be an issue, and I'm writing all the time. If you touch-type, you see when a box pops up. Maybe people should be installing fewer "helpful" applications that end with -gator or -buddy? :)

Or AV apps? Or firewall apps? Or low disk-space messages? Or low batteries on your wireless mouse? Or....the list goes on and on and on.

Quote
This feature was already present in XP, where you have an option to disable it (i.e. let windows steal focus). Has it been further "improved" in 7? Has it changed?

Yes, MS provided an option to disable focus-stealing in XP. Then application developers started coding around this setting so their apps would still steal focus no matter what the setting had been set to do. Microsoft had enough of wayward software developers not playing by the rules, and rightfully so, and started playing hard ball. I applaud the measure myself.

Quote
It's potentially dangerous too, because you may miss notifications that are important (or interesting to you), as they will be obscured by other windows.

No...the taskbar still flashes like a Christmas tree. If you miss notifications by not being able to see that then kindly get thee to an optometrist.

Quote
And it's a source of unending grief for users and coders who *want* a focus-stealing popup in some legitimate scenarios (e.g. when you press a hotkey to bring an application to foreground).

That example does not apply here as that is not focus-stealing. Focus-stealing is an app throwing a popup in the user's face without the user's direction to do so. All your hot-keys will still work.

Quote
Users who've had problems with this should have taken the issue with application authors, instead of prodding MS to further hobble the OS.

No. The software authors should have followed established programming conventions and rules as set forth by Microsoft. This, IMHO, is a well-deserved newspaper smacked squarely on the guilty authors' noses.

Quote
It seems to me that Josh is describing something a little different though - you click to start/open a window/application, and it opens but does not receive focus. That would be unbelievably brain-dead, e.g. start Word, then you still have to click it before you can start typing. Not the same as pop-up dialogs from already running apps. Thankfully I haven't observed it on my wife's installation of 7. Josh, could you please confirm?

When I open an app it will receive focus once it's opened. The only time it doesn't is when I open an app and then I switch focus to an already opened app. Windows is smart enough to see that I want to work with the already opened app right now & will open the new app in the background. Opening an app & not switching focus should open the new app with the focus on it. Any other behavior may be due to a non-Windows 7 compliant program on the computer or maybe buggy video card drivers.

Josh

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 3,411
    • Gathering Badge
    • Official Forum Clown
    • Coding Snacks
    • Plugin Coding Medal
    • Volunteers/Staff
    • Military Service Badge - US Army
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: Win7 Bug - New windows/notifications do not get focus
« Reply #9 on: December 16, 2009, 12:21 AM »
This is just annoying. I realize many users want windows to behave this way, myself included, but my wife is nagging me to go BACK TO VISTA to get this functionality back :-/
Strength in Knowledge

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
Re: Win7 Bug - New windows/notifications do not get focus
« Reply #10 on: December 16, 2009, 12:47 AM »
When it happens is the mouse positioned over the area where the window opens or over another area/window?

The last would imply Active Tracking may be enabled along with the option to raise windows made active by this tracking.
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903

tranglos

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,081
    • Participated in NANY Challenge Twice
Re: Win7 Bug - New windows/notifications do not get focus
« Reply #11 on: December 16, 2009, 02:25 AM »
The last would imply Active Tracking may be enabled along with the option to raise windows made active by this tracking.

Could be accidental triple-clicking as well: the double-click opens an application, then the instantaneous third click gives focus to the desktop or whatever window it happens to hit. Now that another window has been given focus via that additional click, the just-started app won't receive it. If the system is set up to launch stuff on a single click, then doing a double-click instead could trigger the same effect.

This seminal article on (not) stealing focus has a comment below it that describes such a scenario:
http://blogs.msdn.com/oldnewthing/archive/2009/02/20/9435239.aspx

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
Re: Win7 Bug - New windows/notifications do not get focus
« Reply #12 on: December 16, 2009, 04:46 AM »
Could be accidental triple-clicking as well: the double-click opens an application, then the instantaneous third click gives focus to the desktop or whatever window it happens to hit.

I realised that but the fact that it only seemed to be happening on Win7 and not the previous Vista installation I made the assumption, (I know, I know...), that they could tell the difference between accidental triple-click or not.
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 9,827
    • Participated in NANY Challenge Eight Times
    • Cody Award
Re: Win7 Bug - New windows/notifications do not get focus
« Reply #13 on: December 16, 2009, 07:44 AM »
I'm experiencing the same problem. It's nice not to have the focus stolen all the time, but you really should be made aware when you run a program and UAC needs your attention before anything else can be done.

Often I think nothing happened and I go to click the shortcut (or whatever) again only to find out there's a UAC prompt hiding in the task bar.
« Last Edit: December 16, 2009, 05:38 PM by Deozaan »

Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 8,073
    • Cody Award
    • Furry Fandom Badge - Furry Fandom
Re: Win7 Bug - New windows/notifications do not get focus
« Reply #14 on: December 16, 2009, 04:40 PM »
It is a good idea if general popups don't stop your workflow but if UAC pops up that should demand attention. You should rarely see UAC in an ideal worl d so it really shouldn't be an issue.

Original address: https://www.donationcoder.com/forum/index.php?topic=20973.0