Bug 316468 - No reasonable focus stealing prevention level
Summary: No reasonable focus stealing prevention level
Status: RESOLVED DUPLICATE of bug 110543
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-10 13:43 UTC by Ruslan Kabatsayev
Modified: 2013-03-10 13:47 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ruslan Kabatsayev 2013-03-10 13:43:25 UTC
Suppose you set focus stealing prevention to "Medium". Now you launch Chromium, open a website which should trigger a KWallet window asking for password. While the site is loading, you open a Yakuake window and start typing  a command. As you type, the KWallet window finally opens and you end up typing end of your command into password field.
That sucks, you may think and raise focus stealing prevention level to "High". Now, this scenario doesn't appear and you easily get your command executed. But, when you launch e.g. Systemsettings, you find that its window (which you yourself just asked to appear!) appears behind already present Chromium window. What's that? You weren't typing anything, but the newly-opened window, which the user _explicitely_ asked to appear still doesn't appear in front of the user.


Reproducible: Always

Steps to Reproduce:
0. Set "System Settings->Window Behavior->Window Behavior->Focus stealing prevension"  to "Medium" or smaller.
1. Open a terminal, e.g. Konsole or Yakuake
2. Type "sleep 2; kdesudo true" in the terminal and press Enter
3. Open a new tab in the terminal (Ctrl+Shift+N) within 2 seconds and start typing
4. See that once kdesudo appears, your command ending goes to password field instead of terminal
5. Now set "System Settings->Window Behavior->Window Behavior->Focus stealing prevension"  to "High"
6. Launch an app, e.g. a browser, maximize its window.
7. Now launch another app, e.g. Dolphin
8. See Dolphin hiding behind the window appeared in step 6.
Actual Results:  
Medium and High focus stealing prevention levels are too far from each other in their effects, both unsatisfactory.

Expected Results:  
There should be some level which would allow newly opened windows get focus IFF the user hasn't been typing anything for at least 1 second.

I'm using KDE 4.8.5 in Ubuntu Precise, but I guess nothing has changed since that time.
Comment 1 Thomas Lübking 2013-03-10 13:47:35 UTC

*** This bug has been marked as a duplicate of bug 110543 ***