on xenial help sign in
fix the hinting phase (and cancellation thereof) on the top edge
commit2f711c823629d3e16e284c001a49a14cc6428f3c authorLukáš Tinkl <lukas.tinkl@canonical.com> dateThu 25 Aug 2016, 20:49 (10 years ago) parent6b5fb1a
2 files changed+3−1
plugins/Cursor/MousePointer.cpp+1−1 qml/Stages/FakeMaximizeDelegate.qml+2
plugins/Cursor/MousePointer.cpp+1−1
@@ -72,7 +72,7 @@ void MousePointer::handleMouseEvent(ulong timestamp, QPointF movement, Qt::Mouse
7272 } else if (newX >= sceneWidth) { // right edge
7373 Q_EMIT pushedRightBoundary(newX - (sceneWidth - 1), buttons);
7474 } else if (newY < m_panelHeight) { // top edge
75− Q_EMIT pushedTopBoundary(qAbs(newY), buttons);
75+ Q_EMIT pushedTopBoundary(qAbs(newY - m_panelHeight), buttons);
7676 } else if (Q_LIKELY(newX >= 0 && newX < sceneWidth && newY >= 0 && newY < sceneHeight)) { // normal pos, not pushing
7777 Q_EMIT pushStopped();
7878 }
qml/Stages/FakeMaximizeDelegate.qml+2
@@ -110,6 +110,8 @@ Rectangle {
110110 } else if (edge == Item.BottomRight) {
111111 target.maximizeBottomRight();
112112 }
113+ } else {
114+ stop();
113115 }
114116 }
115117