@@ -16,6 +16,7 @@
17import QtQuick 2.0
17import QtQuick 2.0
18import QtMultimedia 5.0
18import QtMultimedia 5.0
19import Ubuntu.Components 1.1
20import Ubuntu.Components 1.1
20import Unity.Notifications 1.0
21import Unity.Notifications 1.0
21import QMenuModel 0.1
22import QMenuModel 0.1
@@ -84,8 +85,16 @@ Item {
84 source: hints["suppress-sound"] !== "true" && hints["sound-file"] !== undefined ? hints["sound-file"] : ""
85 source: hints["suppress-sound"] !== "true" && hints["sound-file"] !== undefined ? hints["sound-file"] : ""
87− // FIXME: using onCompleted because of LP: #1354406 workaround, has to be onOpacityChanged really
88 Component.onCompleted: {
88 Component.onCompleted: {
89+ // Turn on screen as needed (Powerd.Notification means the screen
90+ // stays on for a shorter amount of time)
91+ if (type == Notification.SnapDecision) {
92+ Powerd.setStatus(Powerd.On, Powerd.Unknown);
93+ } else if (type != Notification.Confirmation) {
94+ Powerd.setStatus(Powerd.On, Powerd.Notification);
97+ // FIXME: using onCompleted because of LP: #1354406 workaround, has to be onOpacityChanged really
89 if (opacity == 1.0 && hints["suppress-sound"] !== "true" && sound.source !== "") {
98 if (opacity == 1.0 && hints["suppress-sound"] !== "true" && sound.source !== "") {
90 sound.play();
99 sound.play();