Transfer of focus to Find/Replace dialog in Eclipse is considered focus stealing by Compiz
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Eclipse |
Invalid
|
Low
|
|||
compiz (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
eclipse (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: compiz
In Eclipse, the Find/Replace dialog automatically gains focus when it is opened, or when you press Ctrl+F while it is already open. However, Compiz considers this latter case to be focus stealing (even when focus stealing prevention is set to "Low"), despite the fact that both windows are part of the same app and the transfer is in response to a user action.
Repro steps:
1) Enable Compiz, then install compizconfig-
Desktop Effects Settings -> General Options -> Focus & Raise Behaviour.
2) Install Eclipse, open it, and open an editor window.
3) Press Ctrl+F to show the Find/Replace dialog.
=> The dialog gets focus, as expected.
4) Click on the editor to transfer focus back to it.
5) Press Ctrl+F again with the Find/Replace dialog already open.
=> Although the "Find:" text field gets focus, the actual Find/Replace window
does not, so that if you try to type then the keypresses go nowhere.
Expected: When Ctrl+F is pressed, the Find/Replace window should always get focus (except perhaps when using very strong focus stealing prevention)
I don't know whose bug this is, so I'm opening it against both the Eclipse and Compiz packages. I know you could argue that this is how focus stealing prevention is supposed to work, but it is definitely a bug to consider this focus stealing on the "Low" setting when it is so obviously not focus stealing.
Also opened with Eclipse upstream at https:/
Note that I have actually installed Eclipse directly from eclipse.org (Version: 3.3.1.1, Build id: M20071023-1652), not the Ubuntu repos, but I'm assuming that this would affect Ubuntu's package too.
$ lsb_release -rd
Description: Ubuntu 8.04
Release: 8.04
$ apt-cache policy compiz
compiz:
Installed: 1:0.7.4-0ubuntu6
Candidate: 1:0.7.4-0ubuntu6
Version table:
*** 1:0.7.4-0ubuntu6 0
500 http://
100 /var/lib/
Changed in eclipse: | |
status: | Unknown → Confirmed |
Changed in eclipse: | |
importance: | Unknown → Low |
status: | Confirmed → Invalid |
Build ID: M20071023-1652
Steps To Reproduce: settings- manager, then go to System -> Preferences -> Advanced Desktop Effects Settings -> General Options -> Focus & Raise Behaviour.)
1. On a Linux machine that uses Compiz (in my case Ubuntu Hardy 32-bit), turn on focus stealing prevention with any strength. (Install compizconfig-
2. Open an editor window in Eclipse.
3. Press Ctrl+F to show the Find/Replace dialog.
=> The dialog gets focus, as expected.
4. Click on the editor to transfer focus back to it.
5. Press Ctrl+F again with the Find/Replace dialog already open.
=> Although the "Find:" text field gets focus, the actual Find/Replace window does not, so that if you try to type then the keypresses go nowhere.
Expected:
When Ctrl+F is pressed, the Find/Replace window should always get focus.
More information:
The bug does not occur if Compiz's focus stealing prevention is turned off.