Merge lp:~sil2100/unity/fix_alt_tab_horrors_6.0 into lp:unity/6.0
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Andrea Azzarone | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 2792 | ||||
Proposed branch: | lp:~sil2100/unity/fix_alt_tab_horrors_6.0 | ||||
Merge into: | lp:unity/6.0 | ||||
Diff against target: |
82 lines (+35/-1) 3 files modified
launcher/SwitcherController.cpp (+8/-1) launcher/SwitcherController.h (+2/-0) tests/autopilot/unity/tests/test_switcher.py (+25/-0) |
||||
To merge this branch: | bzr merge lp:~sil2100/unity/fix_alt_tab_horrors_6.0 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Andrea Azzarone (community) | Approve | ||
Review via email: mp+132159@code.launchpad.net |
Commit message
Cherry-picked rev 2870 from lp:unity:
A workaround fix for Alt+TAB picking up wrong window when used on a application group. The check for Quirk::ACTIVE is not valid right now due to the fact we're making the switcher window active prior to display (this is done this way to fix some other bugs). So a workaround is to save the last active window prior to this action and use this during the checks. It fixes a very annoying bug.
Description of the change
- Problem
When tapping Alt+Tab not-too-fast (not doing a quick-tap) when having 2 same application windows, the focus doesn't change to the next window of the application, but stays on the currently active window. It should switch to the next window, just as it does for a quick tap.
- Fix
It's actually fixed with a workaround. The bug appeared actually because we're focusing the switcher window when the switcher is being shown (therefore fixing a few other bugs). But because of this, the Quirk::ACTIVE is on the switcher window, not on the last active window. Because fixing it the right way would probably need more thinking, this is a quick workaround fix.
What we're doing is: we save the last focused/active window before showing the switcher, and using this one as a reference for switching.
- Tests
Covered by 2 autopilot tests.