on xenial help sign in
fix switching focus between apps
b2a69e2Lukáš Tinkl
qml/Stages/DesktopStage.qml+1
@@ -549,6 +549,7 @@ AbstractStage {
549 target: appDelegate
549 target: appDelegate
550 resizeTarget: resizeArea
550 resizeTarget: resizeArea
551 borderThickness: resizeArea.borderThickness
551 borderThickness: resizeArea.borderThickness
552+ onActivated: ApplicationManager.focusApplication(model.appId)
552 }
553 }
553
554
554 WindowedFullscreenPolicy {
555 WindowedFullscreenPolicy {
qml/Stages/WindowControlsOverlay.qml+7−2
@@ -26,6 +26,8 @@ Item {
26 property Item resizeTarget // WindowResizeArea
26 property Item resizeTarget // WindowResizeArea
27 property int borderThickness
27 property int borderThickness
28
28
29+ signal activated
30+
29 TabletSideStageTouchGesture {
31 TabletSideStageTouchGesture {
30 id: gestureArea
32 id: gestureArea
31 anchors.fill: parent
33 anchors.fill: parent
@@ -33,8 +35,9 @@ Item {
33 maximumTouchPoints: 2
35 maximumTouchPoints: 2
34
36
35 onRecognisedPressChanged: {
37 onRecognisedPressChanged: {
36− if (recognisedPress) {
38+ if (recognisedPress && target && !target.fullscreen) {
37 overlayTimer.running = true;
39 overlayTimer.running = true;
40+ root.activated();
38 }
41 }
39 }
42 }
40 }
43 }
@@ -51,6 +54,8 @@ Item {
51 // dismiss area
54 // dismiss area
52 InverseMouseArea {
55 InverseMouseArea {
53 anchors.fill: overlay
56 anchors.fill: overlay
57+ visible: overlay.visible
58+ enabled: visible
54 onClicked: overlayTimer.stop()
59 onClicked: overlayTimer.stop()
55 }
60 }
56
61
@@ -95,7 +100,7 @@ Item {
95 Item {
100 Item {
96 id: overlay
101 id: overlay
97 anchors.fill: parent
102 anchors.fill: parent
98− opacity: overlayTimer.running && target && !target.fullscreen ? 1 : 0
103+ opacity: overlayTimer.running ? 1 : 0
99 visible: opacity == 1
104 visible: opacity == 1
100 enabled: visible
105 enabled: visible
101
106