ghacks Technology News

Prevent applications from stealing focus

It happens several times a day that some applications steal the focus of the active window by popping up. This can happen for a number of reasons, when I extract files or a transfer finishes for instance. It does not matter most of the time when this happens but sometimes I’m writing an article and it does not only mean that I have to type some words again but also that I lost concentration and have to click to regain focus.

The Pro Reviewer website has a tip on how to prevent this from happening. The easiest way of preventing focus stealing is to use Tweak UI which has a setting that is called “Prevent applications from stealing focus”. Checking this option prevents that other applications pop up suddenly and steal the focus of the window you are currently working in.

This only works when the application has been minimized before. Instead of stealing the focus it will flash a number of times which can be defined in the same menu in Tweak UI. If you do not want to use Tweak UI you can change the setting in the Windows Registry.

Navigate to the Registry key HKEY_CURRENT_USER > Control Panel > Desktop and change the ForegroundLockTimeout value to 30d40 (Hexadecimal) or 200000 (Decimal). The key ForeGroundFlashCount defines the amount of flashes of a window to alert the user where 0 means unlimited.

Enjoyed the article?: Then sign-up for our free newsletter or RSS feed to kick off your day with the latest technology news and tips, or share the article with your friends and contacts on Facebook or Twitter.

Related Articles:

Linux Tips: Window focus
CinemaDrape, Focus On One Window At A Time
Copying bought music is stealing !
Cycle Input Focus, Activate Forms In Firefox With A Shortcut
Focus Keyboard Improves Your Firefox Workflow



About the Author:Martin Brinkmann is a journalist from Germany who founded Ghacks Technology News Back in 2005. He is passionate about all things tech and knows the Internet and computers like the back of his hand. You can follow Martin on Facebook or Twitter.

Author: , Friday April 4, 2008 -
Tags:, , , ,


Responses so far:

  1. Salz` says:

    Is there an “harder” way, like preventing focus steal by “You need to restart” dialogs, it realy sucks if you write an article and confirm the dialog with the spacebar. *grml*

  2. Fak says:

    Even after doing that, Firefox still steals focus.
    For instance, when I’m on a chat, it pops up every time a get a message.

  3. a says:

    This does not work. Please stop joining others in flooding the internet with this garbage. It is stealing our focus while we try to look for a solution that actually works.

Leave a Reply   Follow Ghacks   Subscribe To Comment Rss

Subscribe without commenting

© 2005-2012 Ghacks.net. All Rights Reserved. Privacy Policy - About Us