This is an automated email from the git hooks/post-receive script.

bluesabre pushed a 
commit to branch 
master
in repository apps/xfce4-screensaver.

commit 7e6fe76f548cd3e0ea1363e57f26aa9f3579fcfb
Author: Michael Weiser <michael.wei...@gmx.de>
Date:   Thu Jan 9 12:18:37 2020 +0100

    dbus: Prevent overzealous activiation (bug #16365)
    
    Port over a check from mate screensaver that prevents activation when
    clearing an inhibitor by first checking if the session is actually idle.
    If clearing the inhibitor is the result of some interactive user action,
    this should never be the case and thus prevent e.g. saver activation
    when stopping video playback that did inhibit the screen saver.
    
    Signed-off-by: Sean Davis <smd.seanda...@gmail.com>
---
 src/gs-listener-dbus.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gs-listener-dbus.c b/src/gs-listener-dbus.c
index c501015..0c15379 100644
--- a/src/gs-listener-dbus.c
+++ b/src/gs-listener-dbus.c
@@ -311,6 +311,10 @@ listener_check_activation (GSListener *listener) {
         return TRUE;
     }
 
+    if (!listener->priv->session_idle) {
+        return TRUE;
+    }
+
     /* if we aren't inhibited then activate */
     inhibited = listener_ref_entry_is_present (listener, 
REF_ENTRY_TYPE_INHIBIT);
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to