Commit 7e6fe76f authored by Michael Weiser's avatar Michael Weiser Committed by Sean Davis

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's avatarSean Davis <smd.seandavis@gmail.com>
parent 54ae3b50
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment