alt-tab - quick alt + tab (before the switcher shows) not consistent

Bug #861250 reported by Didier Roche-Tolomelli
98
This bug affects 20 people
Affects Status Importance Assigned to Milestone
Ayatana Design
Fix Released
Critical
John Lea
Unity
Fix Released
Medium
Marco Trevisan (Treviño)
Unity Distro Priority
Fix Released
Undecided
Unassigned
unity (Ubuntu)
Fix Released
Medium
Marco Trevisan (Treviño)

Bug Description

the alt + tab pressed quickly (without the switcher showing) seems to have some inconsistencies.

First test case, which seems to have the right behavior:
1. Have a chromium instance, and 2 thundebird windows (a composer window and the main window) on the same worspace
2. I can quickly alt + tab between the 2 last windows like the main window and the composer
-> this behavior seems right

1. Now, same configuration, but the two last windows I want to switch between is the chromium window and the thunderbird composer (for some copy and paste, for instance).
2. Make sure the thunderbird composer window is focused
3. Then focus the chromium window
4. press alt + tab quickly (so the switcher does not show)

Current incorrect behaviour:
- The thunderbird composer window gets the focus (correct) and the thunderbird main window is placed on top of the chromium window in the z order stack (incorrect)

Correct desired behaviour:
- The thunderbird composer window gets the focus
- The z-order of all other windows is unaffected.

Related branches

Changed in unity:
status: New → Incomplete
Revision history for this message
Sebastien Bacher (seb128) wrote :

Confirming the issue, it's quite annoying especially when you have several instance of a same program open (think text editor, im discussions, etc) and regularly switch between one of those instances and i.e a web browser you don't want all your open text to go back on screen over the browser every time, or your pidgin buddy list to come to front because you reply to a friend in the chat dialog

John Lea (johnlea)
description: updated
tags: added: onew udo
Changed in ayatana-design:
assignee: nobody → John Lea (johnlea)
importance: Undecided → Critical
status: New → Fix Committed
status: Fix Committed → Fix Released
summary: - quick alt + tab (before the switcher shows) not consistent
+ alt-tab - quick alt + tab (before the switcher shows) not consistent
Changed in unity:
milestone: none → 4.20.0
status: Incomplete → Triaged
importance: Undecided → Medium
Changed in unity (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Jason Smith (jassmith) wrote :

Okay so I had a chat with design about this and here is the realistic results:

There are cases where you want alt-tab to raise every window of an application (chat clients, gimp, configuration windows) and cases where you dont. The solution proposed trades one set of problems for another when what we need is a smarter behavior. This behavior can be determined by identifying if a window serves the function of a primary task, or a supported task to a primary window. Transient windows provide is the majority hint we need, but are not 100% reliable (barely 50% accurate really). So for O+1 we will have to tackle this problem head on with a look to identifying these cases more clearly.

John Lea (johnlea)
tags: removed: onew udo
Changed in ayatana-design:
importance: Critical → Undecided
status: Fix Released → Incomplete
assignee: John Lea (johnlea) → nobody
Changed in unity:
milestone: 4.20.0 → 4.22.0
Changed in unity:
milestone: 4.22.0 → 4.24.0
Changed in unity:
milestone: 4.24.0 → 4.26.0
description: updated
Changed in unity-distro-priority:
status: New → Fix Committed
John Lea (johnlea)
description: updated
Changed in unity:
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
status: Triaged → In Progress
Changed in unity (Ubuntu):
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
status: Triaged → In Progress
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

About this I was thinking that this solution could fit most cases, for quick Alt+Tab / Alt+`:
 - If an application has some normal windows opened and optionally some transient windows: both quick Alt+Tab and quick Alt+` switch between main windows.
 - If an application has only one normal window and one (or more?) transient: quick Alt+Tab should switch to another application, quick Alt+` switch to the transient window.

Long Alt+Tab / Alt+` should allow to switch to any application/window.

David Barth (dbarth)
Changed in unity:
milestone: 4.26.0 → 4.28.0
David Barth (dbarth)
Changed in unity:
milestone: 4.28.0 → none
milestone: none → backlog
Changed in unity:
milestone: backlog → 5.0.0
Changed in unity:
milestone: 5.0.0 → 5.2.0
John Lea (johnlea)
Changed in ayatana-design:
status: Incomplete → Fix Committed
tags: added: udp
Changed in unity:
milestone: 5.2.0 → 5.4.0
John Lea (johnlea)
Changed in ayatana-design:
assignee: nobody → John Lea (johnlea)
importance: Undecided → High
Changed in unity:
milestone: 5.4.0 → 5.6.0
Andrea Cimitan (cimi)
tags: added: top5p
Tim Penhey (thumper)
tags: added: distro-priority
John Lea (johnlea)
Changed in ayatana-design:
importance: High → Critical
Changed in unity:
milestone: 5.6.0 → 5.8.0
Changed in unity:
milestone: 5.8.0 → 5.10.0
Changed in unity:
milestone: 5.10.0 → 5.12.0
Changed in unity:
status: In Progress → Fix Committed
Changed in unity (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity - 5.10.0-0ubuntu4

---------------
unity (5.10.0-0ubuntu4) precise-proposed; urgency=low

  * Cherry-pick an additional fix from trunk fixing multiple bugs:
    - alt-tab - quick alt + tab (before the switcher shows) not consistent
      (LP: #861250)
    - Launcher, Alt-Tab - clicking on launcher item or selecting a app in
      Alt-Tab raises all app windows, not just most recently focused
      (LP: #959339)
    - Alt-Tab, multimonitor - The Alt-Tab overlay should appear on the display
      which has focus. (LP: #981795)
 -- Didier Roche <email address hidden> Mon, 16 Apr 2012 08:35:28 +0200

Changed in unity (Ubuntu):
status: Fix Committed → Fix Released
Changed in unity-distro-priority:
status: Fix Committed → Fix Released
Changed in unity:
status: Fix Committed → Fix Released
Omer Akram (om26er)
Changed in unity:
status: Fix Released → Fix Committed
Nick Tait (jnick-tait)
Changed in ayatana-design:
status: Fix Committed → Fix Released
tags: added: reviewedbydesignp
removed: udp
Changed in unity:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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