@@ -56,7 +56,6 @@ Item {
56 property bool beingResized
56 property bool beingResized
57 property string usageScenario: "phone" // supported values: "phone", "tablet" or "desktop"
57 property string usageScenario: "phone" // supported values: "phone", "tablet" or "desktop"
58 property string mode: "full-greeter"
58 property string mode: "full-greeter"
59− property bool cursorVisible: false
60 function updateFocusedAppOrientation() {
59 function updateFocusedAppOrientation() {
61 applicationsDisplayLoader.item.updateFocusedAppOrientation();
60 applicationsDisplayLoader.item.updateFocusedAppOrientation();
@@ -132,24 +131,6 @@ Item {
132 shell.activateApplication(app);
131 shell.activateApplication(app);
137− property bool touchDetected: false;
139− function hideCursor() {
140− touchDetected = true;
141− shell.cursorVisible = false;
144− function revealCursor() {
145− if (touchDetected) {
146− touchDetected = false;
147− //Mir.cursorName = "";
148− shell.cursorVisible = true;
153 Binding {
134 Binding {
154 target: LauncherModel
135 target: LauncherModel
155 property: "applicationManager"
136 property: "applicationManager"
@@ -197,7 +178,7 @@ Item {
198 WindowInputMonitor {
179 WindowInputMonitor {
199 onHomeKeyActivated: { launcher.fadeOut(); shell.showHome(); }
180 onHomeKeyActivated: { launcher.fadeOut(); shell.showHome(); }
200− onTouchBegun: { cursorPriv.hideCursor(); }
181+ onTouchBegun: { cursor.hideCursor(); }
201 onTouchEnded: {
182 onTouchEnded: {
202 // move the (hidden) cursor to the last known touch position
183 // move the (hidden) cursor to the last known touch position
203 cursor.x = pos.x;
184 cursor.x = pos.x;
@@ -688,7 +669,6 @@ Item {
688 id: cursor
669 id: cursor
689 visible: shell.hasMouse
670 visible: shell.hasMouse
690 z: screenGrabber.z + 1
671 z: screenGrabber.z + 1
691− opacity: shell.cursorVisible ? 1 : 0
693 onPushedLeftBoundary: {
673 onPushedLeftBoundary: {
694 if (buttons === Qt.NoButton) {
674 if (buttons === Qt.NoButton) {
@@ -704,7 +684,7 @@ Item {
706 onMouseMoved: {
686 onMouseMoved: {
707− cursorPriv.revealCursor();
687+ cursor.revealCursor();