Merge lp:~brandontschaefer/unity/lp.1100962-fix-hud-focus-problem-6.0 into lp:unity/6.0
Status: | Merged |
---|---|
Approved by: | Łukasz Zemczak |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2800 |
Proposed branch: | lp:~brandontschaefer/unity/lp.1100962-fix-hud-focus-problem-6.0 |
Merge into: | lp:unity/6.0 |
Diff against target: |
50 lines (+18/-2) 2 files modified
hud/HudController.cpp (+2/-0) tests/autopilot/unity/tests/test_hud.py (+16/-2) |
To merge this branch: | bzr merge lp:~brandontschaefer/unity/lp.1100962-fix-hud-focus-problem-6.0 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Łukasz Zemczak | Approve | ||
Review via email: mp+143784@code.launchpad.net |
Commit message
The Hud now saves the last_focused_window before opening the Hud.
Description of the change
=== Problem ===
When Alt+Tab was used, a last_focused_window was being saved. This is used when restoring a window if Alt+Tab does not focus a new window. The problem is the Hud does not save this window, so after an Alt+Tab, the last_focused_window was pointed to the window before the Alt+Tab. Then opening/closing the Hud would cause the Hud to attempt to restore the lat_focsued_window if it exited, since Alt+Tab was saving it, it would focus the window before the Alt+tab (incorrect).
=== Fix ===
We have the Hud save the last_focused_window as the window that focused before opening the Hud...
=== Test ===
There is an AP test for this.
Same bug, same awesomeness +1.