Merge lp:~mzanetti/unity8/launcher-hiding-fix into lp:unity8

Proposed by Michael Zanetti
Status: Merged
Approved by: Albert Astals Cid
Approved revision: 2771
Merged at revision: 2825
Proposed branch: lp:~mzanetti/unity8/launcher-hiding-fix
Merge into: lp:unity8
Diff against target: 48 lines (+15/-1)
3 files modified
qml/Components/EdgeBarrier.qml (+1/-0)
qml/Launcher/Launcher.qml (+1/-1)
tests/qmltests/Launcher/tst_Launcher.qml (+13/-0)
To merge this branch: bzr merge lp:~mzanetti/unity8/launcher-hiding-fix
Reviewer Review Type Date Requested Status
Unity8 CI Bot continuous-integration Approve
Albert Astals Cid (community) Approve
Review via email: mp+315033@code.launchpad.net

Commit message

prevent hiding the launcher when the mouse hover event is eaten by the EdgePushArea

Description of the change

 * 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
 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
n/a
 * If you changed the UI, has there been a design review?
n/a

To post a comment you must log in.
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:2770
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/2946/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/3843
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2236
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2236
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/3871
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/3714
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/3714/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/3714
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/3714/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/3714
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/3714/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/3714
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/3714/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/3714
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/3714/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/3714
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/3714/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/2946/rebuild

review: Approve (continuous-integration)
Revision history for this message
Albert Astals Cid (aacid) wrote :

 * Did you perform an exploratory manual test run of the code change and any related functionality?
Yes

 * Did CI run pass? If not, please explain why.
Yes

review: Approve
Revision history for this message
Albert Astals Cid (aacid) wrote :

Note: was top approved.

Text conflict in tests/qmltests/Launcher/tst_Launcher.qml
1 conflicts encountered.

review: Needs Fixing
2771. By Michael Zanetti

merge trunk

Revision history for this message
Michael Zanetti (mzanetti) wrote :

> Note: was top approved.
>
> Text conflict in tests/qmltests/Launcher/tst_Launcher.qml
> 1 conflicts encountered.

merged

Revision history for this message
Albert Astals Cid (aacid) wrote :

Still good

review: Approve
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

FAILED: Continuous integration, rev:2771
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3039/
Executed test runs:
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build/3954/console
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/3982
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/3827
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/3827/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/3827
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/3827/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/3827
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/3827/artifact/output/*zip*/output.zip
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/3827/console
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/3827
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/3827/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/3827
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/3827/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3039/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:2771
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3040/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/3955
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2312
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2312
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/3983
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/3828
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/3828/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/3828
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/3828/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/3828
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/3828/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/3828
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/3828/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/3828
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/3828/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/3828
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/3828/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/3040/rebuild

review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'qml/Components/EdgeBarrier.qml'
--- qml/Components/EdgeBarrier.qml 2016-09-07 12:41:18 +0000
+++ qml/Components/EdgeBarrier.qml 2017-01-26 09:09:40 +0000
@@ -30,6 +30,7 @@
30 property int edge: Qt.LeftEdge30 property int edge: Qt.LeftEdge
3131
32 readonly property alias progress: controller.progress32 readonly property alias progress: controller.progress
33 readonly property alias containsMouse: controller.containsMouse
3334
34 property Item target: parent35 property Item target: parent
35 function push(amount) { controller.push(amount); }36 function push(amount) { controller.push(amount); }
3637
=== modified file 'qml/Launcher/Launcher.qml'
--- qml/Launcher/Launcher.qml 2017-01-24 07:42:24 +0000
+++ qml/Launcher/Launcher.qml 2017-01-26 09:09:40 +0000
@@ -414,7 +414,7 @@
414 target: panel.dismissTimer414 target: panel.dismissTimer
415 onTriggered: {415 onTriggered: {
416 if (root.autohideEnabled && !root.lockedVisible) {416 if (root.autohideEnabled && !root.lockedVisible) {
417 if (!panel.preventHiding) {417 if (!edgeBarrier.containsMouse && !panel.preventHiding) {
418 root.state = ""418 root.state = ""
419 } else {419 } else {
420 panel.dismissTimer.restart()420 panel.dismissTimer.restart()
421421
=== modified file 'tests/qmltests/Launcher/tst_Launcher.qml'
--- tests/qmltests/Launcher/tst_Launcher.qml 2017-01-24 07:42:24 +0000
+++ tests/qmltests/Launcher/tst_Launcher.qml 2017-01-26 09:09:40 +0000
@@ -1480,6 +1480,19 @@
1480 launcher.available = true;1480 launcher.available = true;
1481 }1481 }
14821482
1483 function test_hoverOnEdgeBarrerPreventsHiding() {
1484 revealByEdgePush();
1485
1486 // Make sure the mouse is on the very left edge (on top of the barrier)
1487 mouseMove(root, 1, root.height / 2);
1488
1489 // trigger the hide timer
1490 compare(fakeDismissTimer.running, true);
1491 fakeDismissTimer.triggered();
1492
1493 compare(launcher.state, "visibleTemporary");
1494 }
1495
1483 function test_hintOnSizeChange() {1496 function test_hintOnSizeChange() {
1484 var oldSize = launcher.panelWidth;1497 var oldSize = launcher.panelWidth;
1485 launcher.maxPanelX = -launcher.panelWidth;1498 launcher.maxPanelX = -launcher.panelWidth;

Subscribers

People subscribed via source and target branches