on xenial help sign in
Make sure cursor is back to normal when closing the window

This is not optimal since cursor may now be on top of a different resize area and should change to that. But better moving to the default cursor than being stuck with a weird resize cursor.

commit572221e10518be95be507aa48d72e2823071bfb8 authorAlbert Astals Cid <albert.astals@canonical.com> dateTue 21 Feb 2017, 10:23 (10 years ago) parent66888de
1 file changed+3
qml/Stage/WindowResizeArea.qml+3
qml/Stage/WindowResizeArea.qml+3
@@ -152,6 +152,9 @@ MouseArea {
152152 onCursorNameChanged: {
153153 Mir.cursorName = cursorName;
154154 }
155+ Component.onDestruction: {
156+ Mir.cursorName = "";
157+ }
155158
156159 function updateBorders() {
157160 leftBorder = mouseX <= borderThickness;