When changing viewports, compiz should always focus the top window on the new viewport

Bug #1857900 reported by quequotion
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Compiz
New
Undecided
Unassigned

Bug Description

This is a feature request as much as a bug report.

Compiz should update window focus when changing viewports.

If the new viewport has one or more visible windows, the top level window should be given focus.

If the new viewport has no visible windows, all windows shoud be unfocused.

As it is, compiz often keeps focus on a window from a previous viewport. This is really dangerous, because a user may attempt to interact with a window they can see and not be aware that they are still interacting with a window they can no longer see. An observant user may notice the mouse cursor responding to the previous window (pointer changes to typing cursor, etc according to layout of window on previous desktop), but it's also likely they may think the visible application's window is broken (doesn't appear to respond to interaction, apparently wrong cursors in wrong places).

I am also marking this as a security vulnerability, since it is possible that, while blindly interacting with a window on the previous viewport, a user may inadvertently compromise themselves.

I'm not sure if compiz has always had this problem, but it is a longstanding issue. I have experienced it with multiple versions of compiz across multiple linux distributions, including several releases of Ubuntu.

quequotion (quequotion)
information type: Private Security → Public
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.