Merge lp:~3v1n0/unity/switcher-better-active-app-check into lp:unity
Status: | Merged |
---|---|
Approved by: | Brandon Schaefer |
Approved revision: | no longer in the source branch. |
Merged at revision: | 3124 |
Proposed branch: | lp:~3v1n0/unity/switcher-better-active-app-check |
Merge into: | lp:unity |
Diff against target: |
400 lines (+139/-48) 9 files modified
launcher/ApplicationLauncherIcon.cpp (+25/-0) launcher/ApplicationLauncherIcon.h (+2/-0) launcher/SwitcherController.cpp (+3/-4) launcher/SwitcherModel.cpp (+20/-26) launcher/SwitcherModel.h (+13/-12) tests/mock-application.h (+49/-4) tests/test_application_launcher_icon.cpp (+16/-1) tests/test_switcher_model.cpp (+11/-0) unity-shared/BamfApplicationManager.cpp (+0/-1) |
To merge this branch: | bzr merge lp:~3v1n0/unity/switcher-better-active-app-check |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brandon Schaefer (community) | Approve | ||
PS Jenkins bot | continuous-integration | Pending | |
Review via email: mp+146540@code.launchpad.net |
Commit message
ApplicationLaun
We need to make sure that an application is set as active also if the WindowManager active window
is contained in the application windows list.
Description of the change
Due to the dbus nature of the bamfdaemon, it can happen that when quickly switching the application focus through Alt+Tab the unity active application is updated with some delay. This can lead to a wrong Alt+Tab behavior (see screencast on attached bug).
So, we need to ensure that an application is considered active when both BAMF has marked it as active and the active Window pointed by the WindowManager is a child of the application.
Made some minor cleanup of SwitcherModel, added new tests.
LGTM.