Sticky windows steal focus
Submitted by Andrzej
Assigned to Olivier Fourdan @olivier
Description
- Have several (focused) windows open on different workspaces.
- Make one of them "sticky" (visible on all workspaces) and click on it to give it a focus.
- Cycle through all workspaces.
- Switch focus to another (non-sticky) window.
- Cycle through all workspaces again and observe that the sticky window took focus from all previously focused windows.
Although this design isn't unjustified (if we treat the sticky window like any other window), it is extremely annoying in dual-screen setups.
My use case typically involves having some windows pinned on a secondary display (for preview, monitoring etc.). If I accidentally click on any of them they start stealing focus from windows on my primary display.
Two potential solutions:
-
When switching the workspace, always give the focus to the recently focused window on that workspace (ignore the fact that the currently focused window is pinned). Users (well, I) expect the pinned window to be visible on all workspace, not to have focus on all workspaces.
-
(workaround for multi-screens) - keep separate lists of recently focused windows on each workspace for each screen and use focus follow mouse to switch focus between screens (see bug #8866).