r/techsupport•
[deleted]

How can we avoid focus stealing in windows 8?

Help Voting for This Feature for Windows 10

Here in Microsoft's Suggestion Box: https://windows.uservoice.com/forums/265757-windows-feature-suggestions/suggestions/6932887-focus-steal-please-solve-it


The Problem

Focus stealing is a mode error produced when a program not in focus (e.g. minimized or operating in background) places a window in the foreground and redirects all keyboard input to that window. This is considered to be an annoyance or hazard to some users because the program may steal the focus while their attention is not on the computer screen, such as when typing while reading copy to the side. This will cause everything typed after the window appeared to be lost - or worse, the typed input may cause an unintended effect in the newly focused window. On slow computers, users are sometimes not even alerted to this behavior in time, because the associated window is only actually displayed several seconds after the actual focus change happened.

You can check the wikipedia article concerning this issue: http://en.wikipedia.org/wiki/Focus_stealing

Example video of typical focus stealing, where photoshop takes a bit too long to open, meanwhile the user is working in another window to save time, and suddenly photoshop steals the focus: https://www.youtube.com/watch?v=NwtxySkGSUE

Although photoshop takes few time to load, this example serves to show how easy any app can steal your focus. One could easily grab C# and create an app which steals your focus on every 5 seconds just to bore the user, and this really happens out there:

http://www.techsupportforum.com/forums/f217/something-is-stealing-focus-from-active-windows-593423.html

http://www.techsupportforum.com/forums/f217/randomly-losing-window-focus-690108.html

http://www.techsupportforum.com/forums/f284/mystery-process-stealing-focus-for-3-5-seconds-104306.html


Current Solution

No solution found so far. Solutions from windows XP and prior versions do not work on Vista/7/8/8.1/10.


More severe focus steal examples:

-> Other severe example, but not as easy to reproduce as the one in that video:

  • User starts burning a DVD with an app,

  • Burning takes some minutes and the user is a guy that works for a living, so meanwhile he starts working in other window,

  • 30 mins later the DVD finishes burning, and decides to ask the user if he wants to open the tray, by showing up a dialog window which steals focus from the user's current working window,

  • The user, which was typing in the working window, confirms some action he doesn't even have time to read right after he got his focus stolen,

  • The tray opens without user's permission.

-> Even other example: Imagine that a dialog box appears for you to restart the PC after installing the latest DirectX (which takes some minutes), and you are working on a very important doc in word. You end up restarting your computer because while you are writing on word your focus gets stolen, and you lose your work.

-> One more: Almost everyone has experienced the situation where you are playing a game in fullscreen (or not) and suddenly the window minimizes or gets thrown back due to other application stealing focus or just lacing itself in the foreground. The same happens with fullscreen movies.

-> Another example povided by Veloxy:

  • User starts installation

  • User switches to chat application

  • User is actively chatting while the program installs

  • Installation asks if you want to install a toolbar and steals focus

  • User presses enter to send a chat message right when the program steals focus

  • Toolbar is installed!


Scale of the Problem

For the ones telling there are good reasons for stealing focus, remember this: there aren't.

See how many people are complaining around the globe:

http://superuser.com/questions/794635/windows-7-update-dialog-steals-focus

http://stackoverflow.com/questions/2819277/focus-stealing-is-evil

http://arstechnica.com/civis/viewtopic.php?f=17&t=1180747

http://www.reddit.com/r/techsupport/comments/2riwz2/how_can_we_avoid_focus_stealing_in_windows_8/

If there really exists the need to alert the user of an important event and ask for its input, we have better ways of doing it than stealing focus, taking the risk of receiving random unintended input.

OSX already implements some good solutions to this problem. In OSX these notification dialogs show up as small popups at the top which do not interrupt your work flow and at the same time they block whatever they are blocking (but only the essential resources they need to block, not the entire workspace) until you give your input:

http://www.macpost.net/wp-content/uploads/2012/02/OS-X-Lion-Mountain-Notification-Center3.png

http://cdn.osxdaily.com/wp-content/uploads/2012/11/swipe-to-ignore-software-update.jpg

http://km.support.apple.com/library/APPLE/APPLECARE_ALLGEOS/HT1338/en_US/HT1338_doitlater_menu-en.png

This OSX feature also solves the modal windows issue. There are tons of modal windows that disable functionalities without the need for it. For example this one which disables the entire workspace enslaving the user to give input at that instant: http://developex.com/blog/wp-content/uploads/2010/07/Untitled-1.jpg

Posted Jan 6, 2015, 4:21 PM UTC · edited

19103
Loading comments…