on xenial help sign in
Only muck with fakeActiveForApp setting if we're locked
1afc2c8Michael Terry
qml/Shell.qml+5−3
@@ -63,8 +63,10 @@ Item {
63 }
63 }
64
64
65 function setFakeActiveForApp(app) {
65 function setFakeActiveForApp(app) {
66+ if (shell.locked) {
66− greeter.fakeActiveForApp = app
67+ greeter.fakeActiveForApp = app
67− lockscreen.hide()
68+ lockscreen.hide()
69+ }
68 }
70 }
69
71
70 Binding {
72 Binding {
@@ -129,7 +131,7 @@ Item {
129 Connections {
131 Connections {
130 target: ApplicationManager
132 target: ApplicationManager
131 onFocusRequested: {
133 onFocusRequested: {
132− if (LightDM.Greeter.active && appId === "dialer-app") {
134+ if (appId === "dialer-app") {
133 // Always let the dialer-app through. Either user asked
135 // Always let the dialer-app through. Either user asked
134 // for an emergency call or accepted an incoming call.
136 // for an emergency call or accepted an incoming call.
135 setFakeActiveForApp(appId)
137 setFakeActiveForApp(appId)