on d8ebc06 help sign in
unity8/qml/Shell.qml
790 lines 28 kB history raw
1/*
2 * Copyright (C) 2013-2016 Canonical, Ltd.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 3.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
17import QtQuick 2.4
18import QtQuick.Window 2.2
19import AccountsService 0.1
20import Unity.Application 0.1
21import Ubuntu.Components 1.3
22import Ubuntu.Components.Popups 1.3
23import Ubuntu.Gestures 0.1
24import Ubuntu.Telephony 0.1 as Telephony
25import Unity.Connectivity 0.1
26import Unity.Launcher 0.1
27import GlobalShortcut 1.0 // has to be before Utils, because of WindowInputFilter
28import GSettings 1.0
29import Utils 0.1
30import Powerd 0.1
31import SessionBroadcast 0.1
32import "Greeter"
33import "Launcher"
34import "Panel"
35import "Components"
36import "Notifications"
37import "Stages"
38import "Tutorial"
39import "Wizard"
40import Unity.Notifications 1.0 as NotificationBackend
41import Unity.Session 0.1
42import Unity.DashCommunicator 0.1
43import Unity.Indicators 0.1 as Indicators
44import Cursor 1.1
45import WindowManager 0.1
48StyledItem {
49 id: shell
51 theme.name: "Ubuntu.Components.Themes.SuruDark"
53 // to be set from outside
54 property int orientationAngle: 0
55 property int orientation
56 property Orientations orientations
57 property real nativeWidth
58 property real nativeHeight
59 property alias indicatorAreaShowProgress: panel.indicatorAreaShowProgress
60 property bool beingResized
61 property string usageScenario: "phone" // supported values: "phone", "tablet" or "desktop"
62 property string mode: "full-greeter"
63 property alias oskEnabled: inputMethod.enabled
64 function updateFocusedAppOrientation() {
65 applicationsDisplayLoader.item.updateFocusedAppOrientation();
66 }
67 function updateFocusedAppOrientationAnimated() {
68 applicationsDisplayLoader.item.updateFocusedAppOrientationAnimated();
69 }
70 property bool hasMouse: false
72 // to be read from outside
73 readonly property int mainAppWindowOrientationAngle:
74 applicationsDisplayLoader.item ? applicationsDisplayLoader.item.mainAppWindowOrientationAngle : 0
76 readonly property bool orientationChangesEnabled: panel.indicators.fullyClosed
77 && (applicationsDisplayLoader.item && applicationsDisplayLoader.item.orientationChangesEnabled)
78 && (!greeter || !greeter.animating)
80 readonly property bool showingGreeter: greeter && greeter.shown
82 property bool startingUp: true
83 Timer { id: finishStartUpTimer; interval: 500; onTriggered: startingUp = false }
85 property int supportedOrientations: {
86 if (startingUp) {
87 // Ensure we don't rotate during start up
88 return Qt.PrimaryOrientation;
89 } else if (greeter && greeter.shown) {
90 return Qt.PrimaryOrientation;
91 } else if (applicationsDisplayLoader.item) {
92 return shell.orientations.map(applicationsDisplayLoader.item.supportedOrientations);
93 } else {
94 // we just don't care
95 return Qt.PortraitOrientation
96 | Qt.LandscapeOrientation
97 | Qt.InvertedPortraitOrientation
98 | Qt.InvertedLandscapeOrientation;
99 }
100 }
102 readonly property var mainApp:
103 applicationsDisplayLoader.item ? applicationsDisplayLoader.item.mainApp : null
104 onMainAppChanged: {
105 if (mainApp) {
106 _onMainAppChanged(mainApp.appId);
107 }
108 }
109 Connections {
110 target: ApplicationManager
111 onFocusRequested: {
112 if (shell.mainApp && shell.mainApp.appId === appId) {
113 _onMainAppChanged(appId);
114 }
115 }
116 }
117 function _onMainAppChanged(appId) {
118 if (wizard.active && appId != "" && appId != "unity8-dash") {
119 // If this happens on first boot, we may be in the
120 // wizard while receiving a call. But a call is more
121 // important than the wizard so just bail out of it.
122 wizard.hide();
123 }
125 if (appId === "dialer-app" && callManager.hasCalls && greeter.locked) {
126 // If we are in the middle of a call, make dialer lockedApp and show it.
127 // This can happen if user backs out of dialer back to greeter, then
128 // launches dialer again.
129 greeter.lockedApp = appId;
130 }
131 greeter.notifyAppFocusRequested(appId);
133 panel.indicators.hide();
134 launcher.hide();
135 }
137 // For autopilot consumption
138 readonly property string focusedApplicationId: ApplicationManager.focusedApplicationId
140 // Disable everything while greeter is waiting, so that the user can't swipe
141 // the greeter or launcher until we know whether the session is locked.
142 enabled: greeter && !greeter.waiting
144 property real edgeSize: units.gu(settings.edgeDragWidth)
146 WallpaperResolver {
147 id: wallpaperResolver
148 width: shell.width
149 }
151 readonly property alias greeter: greeterLoader.item
153 function activateApplication(appId) {
154 if (ApplicationManager.findApplication(appId)) {
155 ApplicationManager.requestFocusApplication(appId);
156 } else {
157 ApplicationManager.startApplication(appId);
158 }
159 }
161 function startLockedApp(app) {
162 if (greeter.locked) {
163 greeter.lockedApp = app;
164 }
165 shell.activateApplication(app);
166 }
168 Binding {
169 target: LauncherModel
170 property: "applicationManager"
171 value: ApplicationManager
172 }
174 Component.onCompleted: {
175 finishStartUpTimer.start();
176 }
178 LightDM{id: lightDM} // Provide backend access
179 VolumeControl {
180 id: volumeControl
181 indicators: panel.indicators
182 }
184 DashCommunicator {
185 id: dash
186 objectName: "dashCommunicator"
187 }
189 PhysicalKeysMapper {
190 id: physicalKeysMapper
191 objectName: "physicalKeysMapper"
193 onPowerKeyLongPressed: dialogs.showPowerDialog();
194 onVolumeDownTriggered: volumeControl.volumeDown();
195 onVolumeUpTriggered: volumeControl.volumeUp();
196 onScreenshotTriggered: itemGrabber.capture(shell);
197 }
199 GlobalShortcut {
200 // dummy shortcut to force creation of GlobalShortcutRegistry before WindowInputFilter
201 }
203 WindowInputFilter {
204 id: inputFilter
205 Keys.onPressed: physicalKeysMapper.onKeyPressed(event, lastInputTimestamp);
206 Keys.onReleased: physicalKeysMapper.onKeyReleased(event, lastInputTimestamp);
207 }
209 WindowInputMonitor {
210 objectName: "windowInputMonitor"
211 onHomeKeyActivated: {
212 // Ignore when greeter is active, to avoid pocket presses
213 if (!greeter.active) {
214 launcher.fadeOut();
215 shell.showHome();
216 }
217 }
218 onTouchBegun: { cursor.opacity = 0; }
219 onTouchEnded: {
220 // move the (hidden) cursor to the last known touch position
221 var mappedCoords = mapFromItem(null, pos.x, pos.y);
222 cursor.x = mappedCoords.x;
223 cursor.y = mappedCoords.y;
224 }
225 }
227 GSettings {
228 id: settings
229 schema.id: "com.canonical.Unity8"
230 }
232 Item {
233 id: stages
234 objectName: "stages"
235 width: parent.width
236 height: parent.height
238 TopLevelSurfaceList {
239 id: topLevelSurfaceList
240 objectName: "topLevelSurfaceList"
241 applicationsModel: ApplicationManager
242 }
244 Loader {
245 id: applicationsDisplayLoader
246 objectName: "applicationsDisplayLoader"
247 anchors.fill: parent
249 // When we have a locked app, we only want to show that one app.
250 // FIXME: do this in a less traumatic way. We currently only allow
251 // locked apps in phone mode (see FIXME in Lockscreen component in
252 // this same file). When that changes, we need to do something
253 // nicer here. But this code is currently just to prevent a
254 // theoretical attack where user enters lockedApp mode, then makes
255 // the screen larger (maybe connects to monitor) and tries to enter
256 // tablet mode.
258 property string usageScenario: shell.usageScenario === "phone" || greeter.hasLockedApp
259 ? "phone"
260 : shell.usageScenario
261 readonly property string qmlComponent: {
262 if(shell.mode === "greeter") {
263 return "Stages/ShimStage.qml"
264 } else if (applicationsDisplayLoader.usageScenario === "phone") {
265 return "Stages/PhoneStage.qml";
266 } else if (applicationsDisplayLoader.usageScenario === "tablet") {
267 return "Stages/TabletStage.qml";
268 } else {
269 return "Stages/DesktopStage.qml";
270 }
271 }
272 // TODO: Ensure the current stage is destroyed before the new one gets loaded.
273 // Currently the new one will get loaded while the old is still hanging
274 // around for a bit, which might lead to conflicts where both stages
275 // change the model simultaneously.
276 onQmlComponentChanged: {
277 if (item) item.stageAboutToBeUnloaded();
278 source = qmlComponent;
279 }
281 property bool interactive: (!greeter || !greeter.shown)
282 && panel.indicators.fullyClosed
283 && launcher.progress == 0
284 && !notifications.useModal
286 onInteractiveChanged: { if (interactive) { focus = true; } }
288 Binding {
289 target: applicationsDisplayLoader.item
290 property: "focus"
291 value: true
292 }
293 Binding {
294 target: applicationsDisplayLoader.item
295 property: "objectName"
296 value: "stage"
297 }
298 Binding {
299 target: applicationsDisplayLoader.item
300 property: "dragAreaWidth"
301 value: shell.edgeSize
302 }
303 Binding {
304 target: applicationsDisplayLoader.item
305 property: "maximizedAppTopMargin"
306 // Not just using panel.panelHeight as that changes depending on the focused app.
307 value: panel.indicators.minimizedPanelHeight
308 }
309 Binding {
310 target: applicationsDisplayLoader.item
311 property: "interactive"
312 value: applicationsDisplayLoader.interactive
313 }
314 Binding {
315 target: applicationsDisplayLoader.item
316 property: "spreadEnabled"
317 value: tutorial.spreadEnabled && (!greeter || (!greeter.hasLockedApp && !greeter.shown))
318 }
319 Binding {
320 target: applicationsDisplayLoader.item
321 property: "inverseProgress"
322 value: !greeter || greeter.locked || !tutorial.launcherLongSwipeEnabled ? 0 : launcher.progress
323 }
324 Binding {
325 target: applicationsDisplayLoader.item
326 property: "shellOrientationAngle"
327 value: shell.orientationAngle
328 }
329 Binding {
330 target: applicationsDisplayLoader.item
331 property: "shellOrientation"
332 value: shell.orientation
333 }
334 Binding {
335 target: applicationsDisplayLoader.item
336 property: "orientations"
337 value: shell.orientations
338 }
339 Binding {
340 target: applicationsDisplayLoader.item
341 property: "background"
342 value: wallpaperResolver.background
343 }
344 Binding {
345 target: applicationsDisplayLoader.item
346 property: "nativeWidth"
347 value: shell.nativeWidth
348 }
349 Binding {
350 target: applicationsDisplayLoader.item
351 property: "nativeHeight"
352 value: shell.nativeHeight
353 }
354 Binding {
355 target: applicationsDisplayLoader.item
356 property: "beingResized"
357 value: shell.beingResized
358 }
359 Binding {
360 target: applicationsDisplayLoader.item
361 property: "keepDashRunning"
362 value: launcher.shown || launcher.dashSwipe
363 }
364 Binding {
365 target: applicationsDisplayLoader.item
366 property: "suspended"
367 value: greeter.shown
368 }
369 Binding {
370 target: applicationsDisplayLoader.item
371 property: "altTabPressed"
372 value: physicalKeysMapper.altTabPressed
373 }
374 Binding {
375 target: applicationsDisplayLoader.item
376 property: "leftMargin"
377 value: shell.usageScenario == "desktop" && !settings.autohideLauncher ? launcher.panelWidth: 0
378 }
379 Binding {
380 target: applicationsDisplayLoader.item
381 property: "applicationManager"
382 value: ApplicationManager
383 }
384 Binding {
385 target: applicationsDisplayLoader.item
386 property: "topLevelSurfaceList"
387 value: topLevelSurfaceList
388 }
389 }
390 }
392 InputMethod {
393 id: inputMethod
394 objectName: "inputMethod"
395 anchors {
396 fill: parent
397 topMargin: panel.panelHeight
398 leftMargin: launcher.lockedVisible ? launcher.panelWidth : 0
399 }
400 z: notifications.useModal || panel.indicators.shown || wizard.active || tutorial.running ? overlay.z + 1 : overlay.z - 1
401 }
403 Loader {
404 id: greeterLoader
405 anchors.fill: parent
406 anchors.topMargin: panel.panelHeight
407 sourceComponent: shell.mode != "shell" ? integratedGreeter :
408 Qt.createComponent(Qt.resolvedUrl("Greeter/ShimGreeter.qml"));
409 onLoaded: {
410 item.objectName = "greeter"
411 }
412 }
414 Component {
415 id: integratedGreeter
416 Greeter {
418 hides: [launcher, panel.indicators]
419 tabletMode: shell.usageScenario != "phone"
420 launcherOffset: launcher.progress
421 forcedUnlock: wizard.active
422 background: wallpaperResolver.background
424 // avoid overlapping with Launcher's edge drag area
425 // FIXME: Fix TouchRegistry & friends and remove this workaround
426 // Issue involves launcher's DDA getting disabled on a long
427 // left-edge drag
428 dragHandleLeftMargin: launcher.available ? launcher.dragAreaWidth + 1 : 0
430 onSessionStarted: {
431 launcher.hide();
432 }
434 onTease: {
435 if (!tutorial.running) {
436 launcher.tease();
437 }
438 }
440 onEmergencyCall: startLockedApp("dialer-app")
441 }
442 }
444 Timer {
445 // See powerConnection for why this is useful
446 id: showGreeterDelayed
447 interval: 1
448 onTriggered: {
449 greeter.forceShow();
450 }
451 }
453 Connections {
454 id: callConnection
455 target: callManager
457 onHasCallsChanged: {
458 if (greeter.locked && callManager.hasCalls && greeter.lockedApp !== "dialer-app") {
459 // We just received an incoming call while locked. The
460 // indicator will have already launched dialer-app for us, but
461 // there is a race between "hasCalls" changing and the dialer
462 // starting up. So in case we lose that race, we'll start/
463 // focus the dialer ourselves here too. Even if the indicator
464 // didn't launch the dialer for some reason (or maybe a call
465 // started via some other means), if an active call is
466 // happening, we want to be in the dialer.
467 startLockedApp("dialer-app")
468 }
469 }
470 }
472 Connections {
473 id: powerConnection
474 target: Powerd
476 onStatusChanged: {
477 if (Powerd.status === Powerd.Off && reason !== Powerd.Proximity &&
478 !callManager.hasCalls && !wizard.active) {
479 // We don't want to simply call greeter.showNow() here, because
480 // that will take too long. Qt will delay button event
481 // handling until the greeter is done loading and may think the
482 // user held down the power button the whole time, leading to a
483 // power dialog being shown. Instead, delay showing the
484 // greeter until we've finished handling the event. We could
485 // make the greeter load asynchronously instead, but that
486 // introduces a whole host of timing issues, especially with
487 // its animations. So this is simpler.
488 showGreeterDelayed.start();
489 }
490 }
491 }
493 function showHome() {
494 greeter.notifyUserRequestedApp("unity8-dash");
496 var animate = !lightDM.greeter.active && !stages.shown
497 dash.setCurrentScope(0, animate, false)
498 ApplicationManager.requestFocusApplication("unity8-dash")
499 }
501 function showDash() {
502 if (greeter.notifyShowingDashFromDrag()) {
503 launcher.fadeOut();
504 }
506 if (!greeter.locked && tutorial.launcherLongSwipeEnabled
507 && ApplicationManager.focusedApplicationId != "unity8-dash") {
508 ApplicationManager.requestFocusApplication("unity8-dash")
509 launcher.fadeOut();
510 }
511 }
513 Item {
514 id: overlay
515 z: 10
517 anchors.fill: parent
519 Panel {
520 id: panel
521 objectName: "panel"
522 anchors.fill: parent //because this draws indicator menus
523 indicators {
524 hides: [launcher]
525 available: tutorial.panelEnabled
526 && ((!greeter || !greeter.locked) || AccountsService.enableIndicatorsWhileLocked)
527 && (!greeter || !greeter.hasLockedApp)
528 width: parent.width > units.gu(60) ? units.gu(40) : parent.width
530 minimizedPanelHeight: units.gu(3)
531 expandedPanelHeight: units.gu(7)
533 indicatorsModel: Indicators.IndicatorsModel {
534 // tablet and phone both use the same profile
535 profile: "phone"
536 Component.onCompleted: load();
537 }
538 }
540 callHint {
541 greeterShown: greeter.shown
542 }
544 readonly property bool focusedSurfaceIsFullscreen: MirFocusController.focusedSurface
545 ? MirFocusController.focusedSurface.state === Mir.FullscreenState
546 : false
547 fullscreenMode: (focusedSurfaceIsFullscreen && !lightDM.greeter.active && launcher.progress == 0)
548 || greeter.hasLockedApp
549 locked: greeter && greeter.active
550 }
552 Launcher {
553 id: launcher
554 objectName: "launcher"
556 /*
557 * Since the Dash doesn't have the same controll over surfaces that the
558 * Shell does, it can't slowly move the scope out of the way, as the shell
559 * does with apps, and the dash is show instantly. This allows for some
560 * leeway and prevents accidental home swipes.
561 */
562 readonly property real offset: shell.focusedApplicationId == "unity8-dash" ? units.gu(12) : 0
563 readonly property bool dashSwipe: progress > offset
565 anchors.top: parent.top
566 anchors.topMargin: inverted ? 0 : panel.panelHeight
567 anchors.bottom: parent.bottom
568 width: parent.width
569 dragAreaWidth: shell.edgeSize
570 available: tutorial.launcherEnabled
571 && (!greeter.locked || AccountsService.enableLauncherWhileLocked)
572 && !greeter.hasLockedApp
573 inverted: shell.usageScenario !== "desktop"
574 superPressed: physicalKeysMapper.superPressed
575 superTabPressed: physicalKeysMapper.superTabPressed
576 panelWidth: units.gu(settings.launcherWidth)
577 lockedVisible: shell.usageScenario == "desktop" && !settings.autohideLauncher && !panel.fullscreenMode
579 onShowDashHome: showHome()
580 onDash: showDash()
581 onDashSwipeChanged: {
582 if (dashSwipe) {
583 dash.setCurrentScope(0, false, true)
584 }
585 }
586 onLauncherApplicationSelected: {
587 greeter.notifyUserRequestedApp(appId);
588 shell.activateApplication(appId);
589 }
590 onShownChanged: {
591 if (shown) {
592 panel.indicators.hide()
593 }
594 }
595 onFocusChanged: {
596 if (!focus) {
597 applicationsDisplayLoader.focus = true;
598 }
599 }
601 GlobalShortcut {
602 shortcut: Qt.AltModifier | Qt.Key_F1
603 onTriggered: {
604 launcher.openForKeyboardNavigation();
605 }
606 }
607 GlobalShortcut {
608 shortcut: Qt.MetaModifier | Qt.Key_0
609 onTriggered: {
610 if (LauncherModel.get(9)) {
611 activateApplication(LauncherModel.get(9).appId);
612 }
613 }
614 }
615 Repeater {
616 model: 9
617 GlobalShortcut {
618 shortcut: Qt.MetaModifier | (Qt.Key_1 + index)
619 onTriggered: {
620 if (LauncherModel.get(index)) {
621 activateApplication(LauncherModel.get(index).appId);
622 }
623 }
624 }
625 }
626 }
628 KeyboardShortcutsOverlay {
629 objectName: "shortcutsOverlay"
630 enabled: launcher.shortcutHintsShown && width < parent.width - (launcher.lockedVisible ? launcher.panelWidth : 0) - padding
631 && height < parent.height - padding - panel.panelHeight
632 anchors.centerIn: parent
633 anchors.horizontalCenterOffset: launcher.lockedVisible ? launcher.panelWidth/2 : 0
634 anchors.verticalCenterOffset: panel.panelHeight/2
635 visible: opacity > 0
636 opacity: enabled ? 0.95 : 0
638 Behavior on opacity {
639 UbuntuNumberAnimation {}
640 }
641 }
643 Tutorial {
644 id: tutorial
645 objectName: "tutorial"
646 anchors.fill: parent
648 paused: callManager.hasCalls || !greeter || greeter.shown ||
649 wizard.active
650 delayed: dialogs.hasActiveDialog || notifications.hasNotification ||
651 inputMethod.state === "shown" ||
652 (launcher.shown && !launcher.lockedVisible) ||
653 panel.indicators.shown || stage.dragProgress > 0
654 usageScenario: shell.usageScenario
655 lastInputTimestamp: inputFilter.lastInputTimestamp
656 launcher: launcher
657 panel: panel
658 stage: applicationsDisplayLoader.item
659 }
661 Wizard {
662 id: wizard
663 objectName: "wizard"
664 anchors.fill: parent
666 function unlockWhenDoneWithWizard() {
667 if (!active) {
668 Connectivity.unlockAllModems();
669 }
670 }
672 Component.onCompleted: unlockWhenDoneWithWizard()
673 onActiveChanged: unlockWhenDoneWithWizard()
674 }
676 MouseArea { // modal notifications prevent interacting with other contents
677 anchors.fill: parent
678 visible: notifications.useModal
679 enabled: visible
680 }
682 Notifications {
683 id: notifications
685 model: NotificationBackend.Model
686 margin: units.gu(1)
687 hasMouse: shell.hasMouse
688 background: wallpaperResolver.background
690 y: topmostIsFullscreen ? 0 : panel.panelHeight
691 height: parent.height - (topmostIsFullscreen ? 0 : panel.panelHeight)
693 states: [
694 State {
695 name: "narrow"
696 when: overlay.width <= units.gu(60)
697 AnchorChanges {
698 target: notifications
699 anchors.left: parent.left
700 anchors.right: parent.right
701 }
702 },
703 State {
704 name: "wide"
705 when: overlay.width > units.gu(60)
706 AnchorChanges {
707 target: notifications
708 anchors.left: undefined
709 anchors.right: parent.right
710 }
711 PropertyChanges { target: notifications; width: units.gu(38) }
712 }
713 ]
714 }
715 }
717 Dialogs {
718 id: dialogs
719 objectName: "dialogs"
720 anchors.fill: parent
721 z: overlay.z + 10
722 usageScenario: shell.usageScenario
723 onPowerOffClicked: {
724 shutdownFadeOutRectangle.enabled = true;
725 shutdownFadeOutRectangle.visible = true;
726 shutdownFadeOut.start();
727 }
728 }
730 Connections {
731 target: SessionBroadcast
732 onShowHome: showHome()
733 }
735 ItemGrabber {
736 id: itemGrabber
737 anchors.fill: parent
738 z: dialogs.z + 10
739 GlobalShortcut { shortcut: Qt.Key_Print; onTriggered: itemGrabber.capture(shell) }
740 Connections {
741 target: applicationsDisplayLoader.item
742 ignoreUnknownSignals: true
743 onItemSnapshotRequested: itemGrabber.capture(item)
744 }
745 }
747 Cursor {
748 id: cursor
749 visible: shell.hasMouse
750 z: itemGrabber.z + 1
752 onPushedLeftBoundary: {
753 if (buttons === Qt.NoButton) {
754 launcher.pushEdge(amount);
755 }
756 }
758 onPushedRightBoundary: {
759 if (buttons === Qt.NoButton && applicationsDisplayLoader.item
760 && applicationsDisplayLoader.item.pushRightEdge) {
761 applicationsDisplayLoader.item.pushRightEdge(amount);
762 }
763 }
765 onMouseMoved: { cursor.opacity = 1; }
766 }
768 // non-visual object
769 KeymapSwitcher {}
771 Rectangle {
772 id: shutdownFadeOutRectangle
773 z: cursor.z + 1
774 enabled: false
775 visible: false
776 color: "black"
777 anchors.fill: parent
778 opacity: 0.0
779 NumberAnimation on opacity {
780 id: shutdownFadeOut
781 from: 0.0
782 to: 1.0
783 onStopped: {
784 if (shutdownFadeOutRectangle.enabled && shutdownFadeOutRectangle.visible) {
785 DBusUnitySessionService.shutdown();
786 }
787 }
788 }
789 }