From e4acc883b2b79d3c24ec6a9ad5a649f5e3d23e5e Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Thu, 5 Nov 2015 10:50:29 +0100 Subject: Support disabling of PowerBtn. By adding GPM_ACTION_POLICY_NOTHING to the available power button actions, it is now possible for MATE users to disable the system's power button, while being in a MATE desktop session. This is helpful if a system's power button is designed in a way that it can easily be accidentally hit by the user without noticing. --- src/gpm-prefs-core.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/gpm-prefs-core.c b/src/gpm-prefs-core.c index 37f6842..ef7edad 100644 --- a/src/gpm-prefs-core.c +++ b/src/gpm-prefs-core.c @@ -632,6 +632,7 @@ prefs_setup_general (GpmPrefs *prefs) GPM_ACTION_POLICY_SUSPEND, GPM_ACTION_POLICY_HIBERNATE, GPM_ACTION_POLICY_SHUTDOWN, + GPM_ACTION_POLICY_NOTHING, -1}; const GpmActionPolicy suspend_button_actions[] = {GPM_ACTION_POLICY_NOTHING, -- cgit v1.2.1