Merge lp:~lukas-kde/unity8/fixLauncherDismiss into lp:unity8
| Status: | Merged | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Approved by: | Michał Sawicz on 2016-01-11 | ||||||||
| Approved revision: | 2110 | ||||||||
| Merged at revision: | 2128 | ||||||||
| Proposed branch: | lp:~lukas-kde/unity8/fixLauncherDismiss | ||||||||
| Merge into: | lp:unity8 | ||||||||
| Diff against target: |
93 lines (+24/-11) 3 files modified
qml/Launcher/Launcher.qml (+4/-9) qml/Launcher/LauncherPanel.qml (+4/-2) tests/qmltests/Launcher/tst_Launcher.qml (+16/-0) |
||||||||
| To merge this branch: | bzr merge lp:~lukas-kde/unity8/fixLauncherDismiss | ||||||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| PS Jenkins bot | continuous-integration | Needs Fixing on 2016-01-11 | |
| Daniel d'Andrada (community) | Abstain on 2016-01-07 | ||
| Michael Terry | 2016-01-05 | Approve on 2016-01-06 | |
|
Review via email:
|
|||
Commit Message
Fix dismissing the launcher when clicking/tapping outside
Description of the Change
Fix dismissing the launcher when clicking/tapping outside in the darkened area and wrongly playing haptics when clicking empty space.
Fixes bug lp#1530940
* Are there any related MPs required for this MP to build/function as expected? Please list.
No
* Did you perform an exploratory manual test run of your code change and any related functionality?
Yes
* Did you make sure that your branch does not contain spurious tags?
Yes
* If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
Yes
* If you changed the UI, has there been a design review?
N/A
| Michael Terry (mterry) wrote : | # |
- Why change onPressed to onClicked?
- Maybe use root.hide() instead of root.switchToNe
- Do you need to set a sensingArea? Default sensing area is whole root window according to docs, which sounds reasonable.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:2105
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Michael Terry (mterry) wrote : | # |
OK, I love the Launcher.qml diff, thanks! :)
Since the two-tap-dismiss bug was a regression, this feels like a reasonable and easy thing to add a test for.
Why the LauncherPanel.qml changes? Seems reasonable to just close the quicklist in that case, like we did before. Do you like the close-launcher behavior better or was this a design-request or something?
| Lukáš Tinkl (lukas-kde) wrote : | # |
> Why the LauncherPanel.qml changes? Seems reasonable to just close the
> quicklist in that case, like we did before. Do you like the close-launcher
> behavior better or was this a design-request or something?
It wasn't anyone's request but it's just for the sake of consistency with unity7 behavior.
| Michael Terry (mterry) wrote : | # |
OK, makes sense, and good catch. :)
I still think a test here would be good though.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:2106
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Lukáš Tinkl (lukas-kde) wrote : | # |
> OK, makes sense, and good catch. :)
>
> I still think a test here would be good though.
There is already a test (Launcher:
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:2107
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:2108
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Daniel d'Andrada (dandrader) wrote : | # |
I wonder if the bug you're trying to fix is related to a more general problem:
https:/
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:2109
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Michael Terry (mterry) wrote : | # |
OK, looks good to me then. Fixes the bug for me (or at least, works around a Mir bug by using InverseMouseArea). And fixes the haptic issue.
| Daniel d'Andrada (dandrader) wrote : | # |
I would hold this MP until we know what's the problem in bug 1531517.
| Michael Terry (mterry) wrote : | # |
@Daniel, yeah for sure there's some Mir oddities going on if switching to InverseMouseArea fixes it. This MP is more of a workaround for that, I believe.
If bug 1531517 fixes the underlying issue, then good.
But this MP seems reasonable regardless -- InverseMouseArea is the right widget for the job. Plus the haptic fix in this MP is also good.
Though I will note that the "signal hidePanel()" bit should be dropped, as discussed on IRC. Marking fix needed until that's done.
| Lukáš Tinkl (lukas-kde) wrote : | # |
Added a test for dismissing the launcher (twice) plus reverted the quick list closing on clicking outside it (as discussed with mterry)
| Michael Terry (mterry) wrote : | # |
OK, that was fast. I'm back on board with this fix. I'll approve, but will defer to Daniel's desire to wait and not top-approve yet.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:2110
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Daniel d'Andrada (dandrader) wrote : | # |
> I would hold this MP until we know what's the problem in bug 1531517.
Turned out to be a missing touch-pressed event on multi-finger taps/gestures. Don't think it affects this bug.
| Michael Terry (mterry) wrote : | # |
Cool. So I'll top approve then.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:2111
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://

FAILED: Continuous integration, rev:2104 jenkins. qa.ubuntu. com/job/ unity8- ci/7016/ jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- vivid-touch/ 5932 jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- xenial- touch/431/ console jenkins. qa.ubuntu. com/job/ unity-phablet- qmluitests- vivid/1721 jenkins. qa.ubuntu. com/job/ unity8- qmluitest- xenial- amd64/424 jenkins. qa.ubuntu. com/job/ unity8- vivid-amd64- ci/1616 jenkins. qa.ubuntu. com/job/ unity8- vivid-i386- ci/1616 jenkins. qa.ubuntu. com/job/ unity8- xenial- amd64-ci/ 423 jenkins. qa.ubuntu. com/job/ unity8- xenial- i386-ci/ 422 jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- runner- vivid-touch/ 4581 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 5943 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- vivid-armhf/ 5943/artifact/ work/output/ *zip*/output. zip s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 26424 jenkins. qa.ubuntu. com/job/ generic- deb-autopilot- runner- xenial- touch/185/ console jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- xenial- armhf/429 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- xenial- armhf/429/ artifact/ work/output/ *zip*/output. zip s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 26425
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
UNSTABLE: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/unity8- ci/7016/ rebuild
http://