Merge lp:~aacid/unity-2d/DoNotHideLauncherImmediatellyOnIconRemoval_884410 into lp:unity-2d
Status: | Merged |
---|---|
Approved by: | Tiago Salem Herrmann |
Approved revision: | 790 |
Merged at revision: | 803 |
Proposed branch: | lp:~aacid/unity-2d/DoNotHideLauncherImmediatellyOnIconRemoval_884410 |
Merge into: | lp:unity-2d |
Diff against target: |
68 lines (+23/-4) 2 files modified
launcher/app/visibilitycontroller.cpp (+16/-3) launcher/app/visibilitycontroller.h (+7/-1) |
To merge this branch: | bzr merge lp:~aacid/unity-2d/DoNotHideLauncherImmediatellyOnIconRemoval_884410 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gerry Boland (community) | functional | Approve | |
Tiago Salem Herrmann (community) | Approve | ||
Review via email: mp+83312@code.launchpad.net |
Commit message
[launcher] Do not hide the launcher immediately after removing an icon
Description of the change
This is a tricky one. this is my observation of the issue:
* User clicks RMB in a tile
* User gets the menu
* We call VisibilityContr
* User goes to the menu (i.e. outside of the launcher)
* User clicks remove from launcher
* Menu closes
* We call VisibilityContr
* This recreates the IntelliHideBehavior that then sees there is something under the panel and hides it
My fix is, after recreating the IntelliHideBehavior if we are coming from the situation that the visibility forcing ended and the mouse cursor is outside the panel, we show the panel and start the 1 second timer, to achieve the same effect on removing items that Unity3D has.
Until we get automated testing going, I need to ask you to write unit test to test this fix, and place them in https:/ /wiki.ubuntu. com/Unity2DRegr essionTests