on xenial help sign in
Disable showDash when it is already shown. (LP: #1506708)
2240b6eJosh Arenson
qml/Shell.qml+8−1
@@ -553,7 +553,14 @@ StyledItem {
553 id: launcher
553 id: launcher
554 objectName: "launcher"
554 objectName: "launcher"
555
555
556+ /*
557+ * Since the Dash doesn't have the same controll over surfaces that the
558+ * Shell does, it can't slowly move the scope out of the way, as the shell
559+ * does with apps, and the dash is show instantly. This allows for some
560+ * leeway and prevents accidental home swipes.
561+ */
562+ readonly property real offset: shell.focusedApplicationId == "unity8-dash" ? units.gu(12) : 0
556− readonly property bool dashSwipe: progress > 0
563+ readonly property bool dashSwipe: progress > offset
557
564
558 anchors.top: parent.top
565 anchors.top: parent.top
559 anchors.topMargin: inverted ? 0 : panel.panelHeight
566 anchors.topMargin: inverted ? 0 : panel.panelHeight