on xenial help sign in
Make shell disabled from the get-go instead of first greeter show
9cc97bcMichael Terry
qml/Shell.qml+5−1
@@ -44,6 +44,10 @@ import Unity.DashCommunicator 0.1
44Item {
44Item {
45 id: shell
45 id: shell
46
46
47+ // Disable everything so that user can't swipe greeter or launcher until
48+ // we get first prompt/authenticate, which will re-enable the shell.
49+ enabled: false
50+
47 // this is only here to select the width / height of the window if not running fullscreen
51 // this is only here to select the width / height of the window if not running fullscreen
48 property bool tablet: false
52 property bool tablet: false
49 width: tablet ? units.gu(160) : applicationArguments.hasGeometry() ? applicationArguments.width() : units.gu(40)
53 width: tablet ? units.gu(160) : applicationArguments.hasGeometry() ? applicationArguments.width() : units.gu(40)
@@ -574,7 +578,7 @@ Item {
574 onShownChanged: {
578 onShownChanged: {
575 if (shown) {
579 if (shown) {
576 // Disable everything so that user can't swipe greeter or
580 // Disable everything so that user can't swipe greeter or
577− // launcher until we get first prompt/authenticate, which
581+ // launcher until we get the next prompt/authenticate, which
578 // will re-enable the shell.
582 // will re-enable the shell.
579 shell.enabled = false;
583 shell.enabled = false;
580
584