on xenial help sign in
Only muck with fakeActiveForApp setting if we're locked
commit1afc2c87b973c13a6850284f3b24d39bb7e13c83 authorMichael Terry <michael.terry@canonical.com> dateMon 11 Aug 2014, 13:58 (12 years ago) parent60dc7a0
1 file changed+5−3
qml/Shell.qml+5−3
qml/Shell.qml+5−3
@@ -63,8 +63,10 @@ Item {
6363 }
6464
6565 function setFakeActiveForApp(app) {
66− greeter.fakeActiveForApp = app
67− lockscreen.hide()
66+ if (shell.locked) {
67+ greeter.fakeActiveForApp = app
68+ lockscreen.hide()
69+ }
6870 }
6971
7072 Binding {
@@ -129,7 +131,7 @@ Item {
129131 Connections {
130132 target: ApplicationManager
131133 onFocusRequested: {
132− if (LightDM.Greeter.active && appId === "dialer-app") {
134+ if (appId === "dialer-app") {
133135 // Always let the dialer-app through. Either user asked
134136 // for an emergency call or accepted an incoming call.
135137 setFakeActiveForApp(appId)