on xenial help sign in
fix the hinting phase (and cancellation thereof) on the top edge
2f711c8Lukáš Tinkl
plugins/Cursor/MousePointer.cpp+1−1
@@ -72,7 +72,7 @@ void MousePointer::handleMouseEvent(ulong timestamp, QPointF movement, Qt::Mouse
72 } else if (newX >= sceneWidth) { // right edge
72 } else if (newX >= sceneWidth) { // right edge
73 Q_EMIT pushedRightBoundary(newX - (sceneWidth - 1), buttons);
73 Q_EMIT pushedRightBoundary(newX - (sceneWidth - 1), buttons);
74 } else if (newY < m_panelHeight) { // top edge
74 } else if (newY < m_panelHeight) { // top edge
75− Q_EMIT pushedTopBoundary(qAbs(newY), buttons);
75+ Q_EMIT pushedTopBoundary(qAbs(newY - m_panelHeight), buttons);
76 } else if (Q_LIKELY(newX >= 0 && newX < sceneWidth && newY >= 0 && newY < sceneHeight)) { // normal pos, not pushing
76 } else if (Q_LIKELY(newX >= 0 && newX < sceneWidth && newY >= 0 && newY < sceneHeight)) { // normal pos, not pushing
77 Q_EMIT pushStopped();
77 Q_EMIT pushStopped();
78 }
78 }
qml/Stages/FakeMaximizeDelegate.qml+2
@@ -110,6 +110,8 @@ Rectangle {
110 } else if (edge == Item.BottomRight) {
110 } else if (edge == Item.BottomRight) {
111 target.maximizeBottomRight();
111 target.maximizeBottomRight();
112 }
112 }
113+ } else {
114+ stop();
113 }
115 }
114 }
116 }
115
117