Merge lp:~sil2100/unity/hud_icon_bfb_fix into lp:unity
Status: | Merged |
---|---|
Approved by: | Marco Trevisan (Treviño) |
Approved revision: | no longer in the source branch. |
Merged at revision: | 3017 |
Proposed branch: | lp:~sil2100/unity/hud_icon_bfb_fix |
Merge into: | lp:unity |
Diff against target: |
41 lines (+11/-2) 1 file modified
unity-shared/BamfApplicationManager.cpp (+11/-2) |
To merge this branch: | bzr merge lp:~sil2100/unity/hud_icon_bfb_fix |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Marco Trevisan (Treviño) | Approve | ||
Łukasz Zemczak | Needs Information | ||
PS Jenkins bot | continuous-integration | Pending | |
Review via email: mp+141977@code.launchpad.net |
Commit message
When opening the HUD when the Dash is opened when there are no applications, a '?' icon is shown instead of the BFB icon. To fix this, we ignore all Unity-related windows in the GetActiveWindow() function.
Description of the change
- Problem:
When there are no focused applications on the desktop, the dash is opened and then instantly the HUD, the HUD icon is wrong (showing '?'). It's because the dash is the currently active application then, so it tries to fetch the icon of the dash instead.
- Fix:
A quick workaround - when we show the HUD, we also make sure the active application is not the dash, basing on the application title.
- Test:
Already handled by existing test (test_dash_
More than doing this in the HUD itself, probably it's just better to avoid to get an unity window as the active one in the Application manager (as we did before).
To do that just filter-out the xid's that are in nux::XInputWind ow::NativeHandl eList() in bamf::Manager: :GetActiveWindo w()