summaryrefslogtreecommitdiffstats
path: root/korganizer
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2021-10-01 11:48:17 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-10-05 10:04:53 +0900
commit5655dd3fdf90f678dd26059e8cdfbfcfc8f8aa6c (patch)
tree0ef330f9af49b73b6a22d256067d2e07d21c758c /korganizer
parent62db8a58bf8bb5f7938496820a5e01201183e3b9 (diff)
downloadtdepim-5655dd3fdf90f678dd26059e8cdfbfcfc8f8aa6c.tar.gz
tdepim-5655dd3fdf90f678dd26059e8cdfbfcfc8f8aa6c.zip
korganizer: do not show reminders on top of a locked screen. This
resolves isue #60. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'korganizer')
-rw-r--r--korganizer/korgac/alarmdialog.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/korganizer/korgac/alarmdialog.cpp b/korganizer/korgac/alarmdialog.cpp
index cc0bb2838..b38e6a794 100644
--- a/korganizer/korgac/alarmdialog.cpp
+++ b/korganizer/korgac/alarmdialog.cpp
@@ -544,7 +544,21 @@ void AlarmDialog::wakeUp()
}
if ( activeReminders )
+ {
+ DCOPRef screensaver("kdesktop", "KScreensaverIface");
+ DCOPReply reply = screensaver.call("isBlanked");
+ bool res = true;
+ if (reply.isValid()) {
+ reply.get(res);
+ }
show();
+ if (res)
+ {
+ // Lower the dialog if the screensaver is active or its status unknown.
+ // This prevents reminders to show on a locked screen.
+ lower();
+ }
+ }
setTimer();
showDetails();
emit reminderCount( activeCount() );