on xenial help sign in
properly restore the window

taking the whole panel area into account

commit8476a4e206a725d87914254fb18525cfe7c40118 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateWed 30 Mar 2016, 20:00 (11 years ago) parent6fe702e
1 file changed+2−2
qml/Panel/Panel.qml+2−2
qml/Panel/Panel.qml+2−2
@@ -114,8 +114,8 @@ Item {
114114
115115 property bool mouseWasPressed: false
116116 onPressed: mouseWasPressed = containsPress
117− onExited: {
118− if (mouseWasPressed && !indicatorAreaBackground.contains(Qt.point(mouseX, mouseY))) {
117+ onMouseYChanged: {
118+ if (mouseWasPressed && mouseY > panelHeight) {
119119 PanelState.maximize(); // restore the window when "dragging" the panel down
120120 mouseWasPressed = false;
121121 }