@@ -34,7 +34,7 @@ Item {
3434 anchors.fill: parent
3535
3636 // NB: for testing set to 2, not to clash with unity7 touch overlay controls
37− minimumTouchPoints: 2
37+ minimumTouchPoints: 3
3838 maximumTouchPoints: minimumTouchPoints
3939 releaseRejectPeriod: 500
4040
@@ -152,7 +152,7 @@ Item {
152152 ResizeGrip { // top left
153153 anchors.horizontalCenter: parent.left
154154 anchors.verticalCenter: parent.top
155− visible: target && !overlay.anyMaximized
155+ visible: target && !overlay.anyMaximized && !target.maximizedHorizontally && !target.maximizedVertically
156156 resizeTarget: priv.resizeArea
157157 }
158158
@@ -160,7 +160,7 @@ Item {
160160 anchors.horizontalCenter: parent.horizontalCenter
161161 anchors.verticalCenter: parent.top
162162 rotation: 45
163− visible: target && !overlay.anyMaximized
163+ visible: target && !overlay.anyMaximized && !target.maximizedVertically
164164 resizeTarget: priv.resizeArea
165165 }
166166
@@ -168,7 +168,7 @@ Item {
168168 anchors.horizontalCenter: parent.right
169169 anchors.verticalCenter: parent.top
170170 rotation: 90
171− visible: target && !overlay.anyMaximized
171+ visible: target && !overlay.anyMaximized && !target.maximizedHorizontally && !target.maximizedVertically
172172 resizeTarget: priv.resizeArea
173173 }
174174
@@ -176,14 +176,14 @@ Item {
176176 anchors.horizontalCenter: parent.right
177177 anchors.verticalCenter: parent.verticalCenter
178178 rotation: 135
179− visible: target && !target.maximizedRight && !target.maximized
179+ visible: target && !target.maximizedRight && !target.maximized && !target.maximizedHorizontally
180180 resizeTarget: priv.resizeArea
181181 }
182182
183183 ResizeGrip { // bottom right
184184 anchors.horizontalCenter: parent.right
185185 anchors.verticalCenter: parent.bottom
186− visible: target && !overlay.anyMaximized
186+ visible: target && !overlay.anyMaximized && !target.maximizedHorizontally && !target.maximizedVertically
187187 resizeTarget: priv.resizeArea
188188 }
189189
@@ -191,7 +191,7 @@ Item {
191191 anchors.horizontalCenter: parent.horizontalCenter
192192 anchors.verticalCenter: parent.bottom
193193 rotation: 45
194− visible: target && !overlay.anyMaximized
194+ visible: target && !overlay.anyMaximized && !target.maximizedVertically
195195 resizeTarget: priv.resizeArea
196196 }
197197
@@ -199,7 +199,7 @@ Item {
199199 anchors.horizontalCenter: parent.left
200200 anchors.verticalCenter: parent.bottom
201201 rotation: 90
202− visible: target && !overlay.anyMaximized
202+ visible: target && !overlay.anyMaximized && !target.maximizedHorizontally && !target.maximizedVertically
203203 resizeTarget: priv.resizeArea
204204 }
205205
@@ -207,7 +207,7 @@ Item {
207207 anchors.horizontalCenter: parent.left
208208 anchors.verticalCenter: parent.verticalCenter
209209 rotation: 135
210− visible: target && !target.maximizedLeft && !target.maximized
210+ visible: target && !target.maximizedLeft && !target.maximized && !target.maximizedHorizontally
211211 resizeTarget: priv.resizeArea
212212 }
213213 }