[gnome-settings-daemon/benzea/minor-fix-collection: 17/19] power: Clarify reason for lid inhibition



commit 4b2a936634256c2dbf861857e3a568e418fa2237
Author: Benjamin Berg <bberg redhat com>
Date:   Fri Mar 22 11:22:20 2019 +0100

    power: Clarify reason for lid inhibition
    
    The reason was "Multiple displays attached" which is not really
    accurate, as we are looking for an external screen rather than multiple
    screens. Also, we always grab the inhibitor after a change and then
    release it again if there is no external monitor after a short period of
    time.
    
    Change it to "External monitor attached or configuration changed
    recently" which should clarify this.
    
    Fixes: #353

 plugins/power/gsd-power-manager.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index 9c97bd62..94e86a3d 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -2235,7 +2235,7 @@ inhibit_lid_switch (GsdPowerManager *manager)
         params = g_variant_new ("(ssss)",
                                 "handle-lid-switch",
                                 g_get_user_name (),
-                                "Multiple displays attached",
+                                "External monitor attached or configuration changed recently",
                                 "block");
         g_dbus_proxy_call_with_unix_fd_list (manager->logind_proxy,
                                              "Inhibit",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]