~ci-train-bot/unity8/unity8-ubuntu-zesty-2663

« back to all changes in this revision

Viewing changes to qml/Stage/WindowResizeArea.qml

  • Committer: Nick Dedekind
  • Date: 2017-03-15 15:22:07 UTC
  • mfrom: (2868 unity8)
  • mto: This revision was merged to the branch mainline in revision 2892.
  • Revision ID: nick.dedekind@canonical.com-20170315152207-9ts6lyu1v2pruue2
merged with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
152
152
        onCursorNameChanged: {
153
153
            Mir.cursorName = cursorName;
154
154
        }
 
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 = "";
 
166
        }
155
167
 
156
168
        function updateBorders() {
157
169
            leftBorder = mouseX <= borderThickness;