on xenial help sign in
properly restore the window
8476a4eLukáš Tinkl
qml/Panel/Panel.qml+2−2
@@ -114,8 +114,8 @@ Item {
114
114
115 property bool mouseWasPressed: false
115 property bool mouseWasPressed: false
116 onPressed: mouseWasPressed = containsPress
116 onPressed: mouseWasPressed = containsPress
117− onExited: {
117+ onMouseYChanged: {
118− if (mouseWasPressed && !indicatorAreaBackground.contains(Qt.point(mouseX, mouseY))) {
118+ if (mouseWasPressed && mouseY > panelHeight) {
119 PanelState.maximize(); // restore the window when "dragging" the panel down
119 PanelState.maximize(); // restore the window when "dragging" the panel down
120 mouseWasPressed = false;
120 mouseWasPressed = false;
121 }
121 }