[Xfce4-commits] [xfce/xfce4-power-manager] 01/01: Make inhibition affect dimming and inactivity action (Bug #14687)

noreply at xfce.org noreply at xfce.org
Fri Jul 26 09:10:20 CEST 2019


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

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfce4-power-manager.

commit 46f429282fc852ab8639e8af9aca6c96b8b96bda
Author: Eyal Soha <eyalsoha at gmail.com>
Date:   Mon Jun 3 22:52:31 2019 -0400

    Make inhibition affect dimming and inactivity action (Bug #14687)
    
    This patch does two things by treating inhibition like presentation
    mode (under the precondition that the video player inhibits not only the
    screensaver, but also power management):
    1) It will prevent backlight dimming e.g. while watching videos.
    2) It will prevent the inactivity action (e.g. suspend) from kicking in
    e.g. while watching videos.
    
    If an application inhibits power management can easily be checked by
    looking into the panel plugin. An additional menu item will occur per
    application inhibiting power management.
---
 src/xfpm-power.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xfpm-power.c b/src/xfpm-power.c
index 3cc2dcc..ab22a36 100644
--- a/src/xfpm-power.c
+++ b/src/xfpm-power.c
@@ -1506,7 +1506,7 @@ xfpm_power_is_in_presentation_mode (XfpmPower *power)
 {
     g_return_val_if_fail (XFPM_IS_POWER (power), FALSE);
 
-    return power->priv->presentation_mode;
+    return power->priv->presentation_mode || power->priv->inhibited;
 }
 
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list