@@ -167,11 +167,6 @@ AbstractStage {
167167 onCloseClicked: { if (priv.focusedAppDelegate) { priv.focusedAppDelegate.close(); } }
168168 onMinimizeClicked: { if (priv.focusedAppDelegate) { priv.focusedAppDelegate.minimize(); } }
169169 onRestoreClicked: { if (priv.focusedAppDelegate) { priv.focusedAppDelegate.restoreFromMaximized(); } }
170− onFocusMaximizedApp: {
171− if (priv.foregroundMaximizedAppDelegate) {
172− priv.foregroundMaximizedAppDelegate.focus = true;
173− }
174− }
175170 }
176171
177172 Binding {
@@ -208,12 +203,6 @@ AbstractStage {
208203 value: priv.focusedAppDelegate && priv.focusedAppDelegate.maximized && !priv.focusedAppDelegate.isDash
209204 }
210205
211− Binding {
212− target: PanelState
213− property: "maximizedAppDelegate"
214− value: priv.foregroundMaximizedAppDelegate ? priv.foregroundMaximizedAppDelegate : null
215− }
216−
217206 Component.onDestruction: {
218207 PanelState.title = "";
219208 PanelState.buttonsVisible = false;
@@ -358,7 +347,6 @@ AbstractStage {
358347 readonly property var surface: model.surface
359348 readonly property alias resizeArea: resizeArea
360349 readonly property alias focusedSurface: decoratedWindow.focusedSurface
361− readonly property var moveHandler: touchControls.overlayShown ? touchControls.moveHandler : decoratedWindow.moveHandler
362350
363351 readonly property bool isDash: model.application.appId == "unity8-dash"
364352
@@ -747,7 +735,7 @@ AbstractStage {
747735 onMaximizeVerticallyClicked: appDelegate.maximizedVertically ? appDelegate.restoreFromMaximized() : appDelegate.maximizeVertically()
748736 onMinimizeClicked: appDelegate.minimize()
749737 onDecorationPressed: { appDelegate.focus = true; }
750− onShouldCommitSnapWindow: fakeRectangle.commit();
738+ onDecorationReleased: fakeRectangle.commit();
751739 }
752740
753741 WindowControlsOverlay {
@@ -764,7 +752,7 @@ AbstractStage {
764752 onFakeMaximizeBottomLeftAnimationRequested: if (!appDelegate.maximizedBottomLeft) fakeRectangle.maximizeBottomLeft(amount, true);
765753 onFakeMaximizeBottomRightAnimationRequested: if (!appDelegate.maximizedBottomRight) fakeRectangle.maximizeBottomRight(amount, true);
766754 onStopFakeAnimation: fakeRectangle.stop();
767− onShouldCommitSnapWindow: fakeRectangle.commit();
755+ onDragReleased: fakeRectangle.commit();
768756 }
769757
770758 WindowedFullscreenPolicy {