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 focusCinemaDrape, 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

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*
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.
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.