@@ -152,6 +152,18 @@ MouseArea {
152 onCursorNameChanged: {
152 onCursorNameChanged: {
153 Mir.cursorName = cursorName;
153 Mir.cursorName = cursorName;
155+ Component.onDestruction: {
156+ // TODO Qt 5.8 has fixed the problem with containsMouse
157+ // not being updated when the MouseArea that had containsMouse
158+ // is hidden/removed. When we start using Qt 5.8 we should
159+ // try to fix this scenario
160+ // two windows side by side
161+ // cursor in the resize left area of the right one
162+ // close window by Alt+F4
163+ // cursor should change to resize right of the left one
164+ // currently changes to ""
165+ Mir.cursorName = "";
156 function updateBorders() {
168 function updateBorders() {
157 leftBorder = mouseX <= borderThickness;
169 leftBorder = mouseX <= borderThickness;