Always Visible and On Top Windows Steal Focus on Workspace Switch
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Ayatana Design |
Undecided
|
Unassigned | ||
| | Compiz |
Low
|
Unassigned | ||
| | 0.9.11 |
Low
|
Unassigned | ||
| | Unity |
Won't Fix
|
Low
|
Unassigned | |
Bug Description
1. Open any application (e.g. TextEditor)
2. Right click the title bar
2a. Select "Always on Visible Workspace"
3. Right click the title bar
3a. Select "Always on Top"
4. Open a different application (e.g. Terminal)
5. Ensure that window has focus
6. Switch workspaces (Notice: the first application now has focus)
7. Return to first workspace (Notice: the second application does not regain focus)
Expected:
The initial application should not have ever regained focus, and certainly the second application should have it when returning to that workspace.
antarus@mach ~ $ lsb_release -rd
Description: Ubuntu 12.04.1 LTS
Release: 12.04
antarus@mach ~ $ apt-cache policy unity
unity:
Installed: 5.18.0-0ubuntu2
Candidate: 5.18.0-0ubuntu2
Version table:
Related branches
- Marco Trevisan (Treviño): Approve on 2014-10-03
-
Diff: 127 lines (+60/-0)3 files modifiedmetadata/core.xml.in (+5/-0)
src/privatescreen.h (+17/-0)
src/screen.cpp (+38/-0)
- Christopher Townsend: Needs Fixing on 2014-12-03
- Marco Trevisan (Treviño): Approve on 2014-10-09
-
Diff: 119 lines (+59/-0)3 files modifiedmetadata/core.xml.in (+5/-0)
src/privatescreen.h (+16/-0)
src/screen.cpp (+38/-0)
- PS Jenkins bot: Needs Fixing (continuous-integration) on 2015-06-02
- Brandon Schaefer (community): Needs Fixing on 2015-01-27
- Marco Trevisan (Treviño): Needs Information on 2014-12-20
- Christopher Townsend: Pending requested 2014-12-19
- Compiz Maintainers: Pending requested 2014-12-19
-
Diff: 162 lines (+66/-0)5 files modifiedinclude/core/screen.h (+1/-0)
metadata/core.xml.in (+5/-0)
src/privatescreen.h (+17/-0)
src/screen.cpp (+42/-0)
src/window.cpp (+1/-0)
| Chris J Arges (arges) wrote : | #2 |
I have observed this same behaviour in P/Q/R.
| Changed in unity (Ubuntu Precise): | |
| importance: | Undecided → Medium |
| Changed in unity (Ubuntu Quantal): | |
| importance: | Undecided → Medium |
| Changed in unity (Ubuntu Raring): | |
| importance: | Undecided → Medium |
| Changed in unity (Ubuntu Precise): | |
| status: | New → Confirmed |
| Changed in unity (Ubuntu Quantal): | |
| status: | New → Confirmed |
| Matt Goodall (matt-goodall) wrote : | #3 |
I believe another example of this is when using the Chromium Hangouts extension[1]. The extension uses Chromium Panels - small windows anchored to the edge of the screen that appear on all workspaces - and those panels have the same effect. See "Panels window causes Workspace switching focus to break"[2] for more.
[1] https:/
[2] https:/
| Onyxwolf (onyxwolf-x) wrote : | #4 |
This affects Saucy too! same symptoms... To add to the symptoms, this also occurs when selecting an application (already launched, so just to switch to it, via unity launcher) other than the "Always on top/visable on all workspaces" application, when it must switch workspaces to focus the selected app... Instead of focusing the selected app, once the workspace is switched it will focus the "Always on top/visable on all workspaces" window instead.
This has been a security risk for me (let's try that approach :D , ok I know I can just disable the visable on all workspaces or always on top to fix BUT) as I've accidently provided my domain password to coworkers because of this issue. (IM client is my "Always on top/visable on all workspaces" so when I go to switch to my RDP session and I'm in a hurry, I just type out password and hit enter w/out thinking about it, so find I just IM'd my password to last my convo!!!! VERY annoying, as I've had to drop what I'm doing and change my password)!
I have confirmed the symptoms are present no matter what application I set to "Always on top/visable on all workspaces"...
| Mark Russell (marrusl) wrote : | #5 |
Does this make more sense to fix now that compiz/X is default in trusty?
| no longer affects: | unity |
| affects: | unity → xubuntu-desktop |
| Changed in unity (Ubuntu): | |
| assignee: | nobody → Kip Warner (kip) |
| Changed in xubuntu-desktop: | |
| assignee: | nobody → Kip Warner (kip) |
| Andrew (publicface) wrote : | #6 |
I have what looks to be the same or a related problem. I experience it in a variety of instances, however the most recent example is in using jitsi - a softphone. I receive(d) a call in jitsi, I answer it. I then switch workspaces. When the call is terminated, I have to go back to jitsi and click on it in order to regain control of my mouse. ubuntu 12.04 with KDE/kubuntu-
apt-cache policy kubuntu-desktop
kubuntu-desktop:
Installed: 1.254.1~ppa6
Candidate: 1.254.1~ppa6
Version table:
*** 1.254.1~ppa6 0
500 http://
100 /var/lib/
1.254 0
500 http://
| Changed in ayatana-design: | |
| assignee: | nobody → Kip Warner (kip) |
| Changed in unity (Ubuntu Precise): | |
| assignee: | nobody → Kip Warner (kip) |
| Changed in unity (Ubuntu Quantal): | |
| assignee: | nobody → Kip Warner (kip) |
| Changed in unity (Ubuntu Raring): | |
| assignee: | nobody → Kip Warner (kip) |
| Edward (edward-coffey) wrote : | #7 |
This issue is present in trusty. Possibly a duplicate of #1073488
Google Hangout chats in Chrome (and Chromium?) are probably the most popular trigger for this issue.
| Kip Warner (kip) wrote : | #8 |
Unfortunately it looks like upstream has not expressed any interest in supporting a feature to deal with this situation, so unfortunately I don't think it's something we will be able to either. Supporting a separate fork of Compiz is not really something we have the resources for right now.
| Changed in ayatana-design: | |
| assignee: | Kip Warner (kip) → nobody |
| Changed in unity (Ubuntu): | |
| assignee: | Kip Warner (kip) → nobody |
| Changed in unity (Ubuntu Precise): | |
| assignee: | Kip Warner (kip) → nobody |
| Changed in unity (Ubuntu Quantal): | |
| assignee: | Kip Warner (kip) → nobody |
| Changed in unity (Ubuntu Raring): | |
| assignee: | Kip Warner (kip) → nobody |
| no longer affects: | unity (Ubuntu Quantal) |
| no longer affects: | unity (Ubuntu Raring) |
| Changed in unity: | |
| importance: | Undecided → Low |
| Changed in unity (Ubuntu Precise): | |
| importance: | Medium → Low |
| Changed in unity: | |
| status: | New → Triaged |
| Changed in unity (Ubuntu): | |
| importance: | Medium → Low |
| Dariusz Gadomski (dgadomski) wrote : | #9 |
@Marco
I am thinking about a fix for this:
* Add a setting to change the current behavior (e.g. Remember viewport focus)
* Before changing viewport save the currently focused window
* When coming back to a viewport instead of focusing the default window do:
i) if the new setting is enabled try to restore the focus (if the window is still there)
ii) else fallback to the default behavior (focusDefaultWi
I want to know your opinion on this approach before starting the implementation.
Do you think it makes sense to implement this in core (src/) or is it rather specific to wall plugin and should be implemented there (along with the setting in wall plugin settings)?
| Marco Trevisan (Treviño) (3v1n0) wrote : | #10 |
I guess this is something that would affect also other VP implementations (such as cube), so I think it's better to do this at core level (if applicable).
I'm ok with the setting, so we could even enable it by default, eventually.
| Changed in unity: | |
| status: | Triaged → Won't Fix |
| Changed in unity (Ubuntu): | |
| status: | Confirmed → Won't Fix |
| Changed in compiz: | |
| status: | New → Triaged |
| Changed in unity (Ubuntu Precise): | |
| status: | Confirmed → Won't Fix |
| Changed in compiz: | |
| assignee: | nobody → Dariusz Gadomski (dgadomski) |
| importance: | Undecided → Low |
| no longer affects: | unity (Ubuntu Precise) |
| no longer affects: | unity (Ubuntu) |
| Changed in compiz: | |
| status: | Triaged → In Progress |
| milestone: | none → 0.9.12.0 |
| tags: | added: cts |
| Changed in compiz: | |
| status: | In Progress → Fix Committed |
| Changed in compiz: | |
| status: | Fix Committed → Fix Released |
| Thomas Bushnell, BSG (tbushnell) wrote : | #11 |
Any estimate when this will be pushed for trusty?
| Marco Trevisan (Treviño) (3v1n0) wrote : Re: [Bug 1125442] Re: Always Visible and On Top Windows Steal Focus on Workspace Switch | #12 |
2014-11-11 0:31 GMT+01:00 Thomas Bushnell, BSG <email address hidden>:
> Any estimate when this will be pushed for trusty?
Next SRU, so in probably two weeks.
| Christopher Townsend (townsend) wrote : | #13 |
The fix for this caused a couple of regressions as seen in bug #1393020 and bug #1398512. Due to this, we will have to revert this fix in Vivid and will need a proper fix. That said, moving this bug back to triaged for now.
| Changed in compiz: | |
| status: | Fix Released → Triaged |
| Changed in compiz: | |
| status: | Triaged → In Progress |
| Bruno Nova (brunonova) wrote : | #14 |
Has there been no more progress on this issue?
This issue is very annoying in 16.04 when, for example, I have something like xpad "always visible".
When I switch to an "empty" workspace (with only xpad), xpad gains focus. But when I return to the previous workspace, xpad still has focus.
Worse, since I don't have xpad "always on top", xpad can have focus UNDER another window.
Something like that proposed "Remember viewport focus" option would be very nice, if it doesn't cause regressions, of course.
| Jonathan Jogenfors (etnoy) wrote : | #15 |
I also want to know the progress here. It is certainly an unexpected behavior on Unity when multiple monitors are used with viewport switching. Setting focus to follow the mouse is a clunky workaround and makes it very difficult to use programs such as gimp.
This bug has been "in progress" for years now. The fix can't be that difficult, honestly.
| Changed in compiz: | |
| assignee: | Dariusz Gadomski (dgadomski) → nobody |
| status: | In Progress → Confirmed |

Status changed to 'Confirmed' because the bug affects multiple users.