Skip to content

Commit 28b5ebc

Browse files
committed
csm-manager.c: Don't consider suspend inhibitors when gathering
capabilities for the logout dialog. This can prevent the user forcing a suspend if a multimedia app is inhibiting PM features. This is a regression from transitioning from the old csm-logout-dialog to the wayland-compatible ones. Fixes linuxmint/cinnamon#13019.
1 parent 97bcafd commit 28b5ebc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cinnamon-session/csm-manager.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2775,8 +2775,8 @@ handle_dialog_method_call (CsmExportedDialog *dialog_skeleton,
27752775
(!_log_out_is_locked_down (manager)) && csm_system_can_stop (manager->priv->system),
27762776
(!_log_out_is_locked_down (manager)) && csm_system_can_restart (manager->priv->system),
27772777
can_hybrid_sleep,
2778-
(!csm_manager_is_suspend_inhibited (manager)) && csm_system_can_suspend (manager->priv->system),
2779-
(!csm_manager_is_suspend_inhibited (manager)) && csm_system_can_hibernate (manager->priv->system),
2778+
csm_system_can_suspend (manager->priv->system),
2779+
csm_system_can_hibernate (manager->priv->system),
27802780
(!csm_manager_is_logout_inhibited (manager)));
27812781

27822782
csm_exported_dialog_complete_get_capabilities (dialog_skeleton, invocation, ret);

0 commit comments

Comments
 (0)