on xenial help sign in
Use power state change reason SnapDecision to turn screen on when a SnapDecision arrives
commit5e1a45dd7330e7472cef1c0b4238df5fac832549 authorAlexandros Frantzis <alexandros.frantzis@canonical.com> dateThu 24 Sep 2015, 15:51 (11 years ago) parentd1c74de
2 files changed+2−1
plugins/Powerd/Powerd.h+1 qml/Notifications/Notification.qml+1−1
plugins/Powerd/Powerd.h+1
@@ -38,6 +38,7 @@ public:
3838 PowerKey = 2, // Display changed state due to user pressing power key
3939 Proximity = 3, // Display changed state due to proximity events
4040 Notification = 4, // Display changed state due to user notification
41+ SnapDecision = 5, // Display changed state due to snap decision prompt
4142 };
4243
4344 enum Status {
qml/Notifications/Notification.qml+1−1
@@ -90,7 +90,7 @@ Item {
9090 // Turn on screen as needed (Powerd.Notification means the screen
9191 // stays on for a shorter amount of time)
9292 if (type == Notification.SnapDecision) {
93− Powerd.setStatus(Powerd.On, Powerd.Unknown);
93+ Powerd.setStatus(Powerd.On, Powerd.SnapDecision);
9494 } else if (type != Notification.Confirmation) {
9595 Powerd.setStatus(Powerd.On, Powerd.Notification);
9696 }