Merge lp:~aacid/unity-2d/cache_spread_shown into lp:unity-2d
Status: | Merged |
---|---|
Approved by: | Paweł Stołowski |
Approved revision: | 1027 |
Merged at revision: | 1027 |
Proposed branch: | lp:~aacid/unity-2d/cache_spread_shown |
Merge into: | lp:unity-2d |
Diff against target: |
85 lines (+32/-5) 3 files modified
libunity-2d-private/src/spreadmonitor.cpp (+19/-5) libunity-2d-private/src/spreadmonitor.h (+8/-0) tests/manual-tests/launcher.txt (+5/-0) |
To merge this branch: | bzr merge lp:~aacid/unity-2d/cache_spread_shown |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paweł Stołowski (community) | Approve | ||
Review via email: mp+100371@code.launchpad.net |
Commit message
Use a internal cache for the spread shown value
Otherwise when the service becomes available it may happen that we do
the shownChanged(true) because it's shown and the shownChanged(true) because of
the direct connection between signals and thus the shell ends up with
two shownChanged(true) and forces the visibiity of the launcher twice, meaning
that if we are using hide-mode 1 the launcher will be stuck shown forever
Description of the change
Use a internal cache for the spread shown value
Otherwise when the service becomes available it may happen that we do
the shownChanged(true) because it's shown and the shownChanged(true) because of
the direct connection between signals and thus the shell ends up with
two shownChanged(true) and forces the visibiity of the launcher twice, meaning
that if we are using hide-mode 1 the launcher will be stuck shown forever
Great finding!