diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-10-01 11:48:17 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2021-10-05 10:16:44 +0900 |
commit | 14f3e461a2c63bfabf5c2073cc1ca7ad56d78ba0 (patch) | |
tree | 2314e02b689acfa9aab22ce4523aee5b1dfbea64 | |
parent | 4df670b00428534e32fda99e27f852fd82311168 (diff) | |
download | tdepim-14f3e461a2c63bfabf5c2073cc1ca7ad56d78ba0.tar.gz tdepim-14f3e461a2c63bfabf5c2073cc1ca7ad56d78ba0.zip |
korganizer: do not show reminders on top of a locked screen. Thisr14.0.11
resolves isue #60.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 5655dd3fdf90f678dd26059e8cdfbfcfc8f8aa6c)
-rw-r--r-- | korganizer/korgac/alarmdialog.cpp | 14 |
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() ); |