diff options
author | Remi Salmon <salmon.remi@gmail.com> | 2020-01-07 15:30:26 -0700 |
---|---|---|
committer | Simon Steinbeiss <simon.steinbeiss@elfenbeinturm.at> | 2020-05-26 23:44:31 +0200 |
commit | f89197509bb46e01817e130df2263bea26d2cca9 (patch) | |
tree | 7116bf54f038286074143790ae144e12b14342eb /settings | |
parent | 3d0c196fb741b82212a6f28b64cbf64e5fc369cd (diff) | |
download | ixfce4-power-manager-f89197509bb46e01817e130df2263bea26d2cca9.tar.gz |
Fix Laptop lid settings (Bug #15300)
This also fixes (at least) the related issues
- Bug #15300
- Bug #15151
- Bug #12756
- Bug #12088
Diffstat (limited to 'settings')
-rw-r--r-- | settings/xfpm-settings.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/xfpm-settings.c b/settings/xfpm-settings.c index f56ecf95..91312884 100644 --- a/settings/xfpm-settings.c +++ b/settings/xfpm-settings.c @@ -868,8 +868,8 @@ xfpm_update_logind_handle_lid_switch (XfconfChannel *channel) guint lid_switch_on_ac = xfconf_channel_get_uint (channel, XFPM_PROPERTIES_PREFIX LID_SWITCH_ON_AC_CFG, LID_TRIGGER_LOCK_SCREEN); guint lid_switch_on_battery = xfconf_channel_get_uint (channel, XFPM_PROPERTIES_PREFIX LID_SWITCH_ON_BATTERY_CFG, LID_TRIGGER_LOCK_SCREEN); - // logind-handle-lid-switch = true when: lock_on_suspend == true and (lid_switch_on_ac == suspend or lid_switch_on_battery == suspend) - xfconf_channel_set_bool (channel, XFPM_PROPERTIES_PREFIX LOGIND_HANDLE_LID_SWITCH, lock_on_suspend && (lid_switch_on_ac == 1 || lid_switch_on_battery == 1)); + // logind-handle-lid-switch = true when: lock_on_suspend == true and (lid_switch_on_ac == suspend and lid_switch_on_battery == suspend) + xfconf_channel_set_bool (channel, XFPM_PROPERTIES_PREFIX LOGIND_HANDLE_LID_SWITCH, lock_on_suspend && (lid_switch_on_ac == 1 && lid_switch_on_battery == 1)); } /* END Light Locker Integration */ |