2023-12-05 08:40:32 +01:00
|
|
|
Index: gnome-settings-daemon-45.0/data/gsd-enums.h
|
|
|
|
===================================================================
|
|
|
|
--- gnome-settings-daemon-45.0.orig/data/gsd-enums.h
|
|
|
|
+++ gnome-settings-daemon-45.0/data/gsd-enums.h
|
2019-10-04 17:46:22 +02:00
|
|
|
@@ -105,6 +105,7 @@ typedef enum
|
2016-09-08 13:48:17 +02:00
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
GSD_POWER_BUTTON_ACTION_NOTHING,
|
|
|
|
+ GSD_POWER_BUTTON_ACTION_SHUTDOWN,
|
|
|
|
GSD_POWER_BUTTON_ACTION_SUSPEND,
|
2017-09-12 22:01:35 +02:00
|
|
|
GSD_POWER_BUTTON_ACTION_HIBERNATE,
|
|
|
|
GSD_POWER_BUTTON_ACTION_INTERACTIVE
|
2023-12-05 08:40:32 +01:00
|
|
|
Index: gnome-settings-daemon-45.0/plugins/media-keys/gsd-media-keys-manager.c
|
|
|
|
===================================================================
|
|
|
|
--- gnome-settings-daemon-45.0.orig/plugins/media-keys/gsd-media-keys-manager.c
|
|
|
|
+++ gnome-settings-daemon-45.0/plugins/media-keys/gsd-media-keys-manager.c
|
|
|
|
@@ -2053,6 +2053,9 @@ do_config_power_button_action (GsdMediaK
|
|
|
|
}
|
2016-09-08 13:48:17 +02:00
|
|
|
|
|
|
|
switch (action_type) {
|
2023-12-05 08:40:32 +01:00
|
|
|
+ case GSD_POWER_BUTTON_ACTION_SHUTDOWN:
|
2016-09-08 13:48:17 +02:00
|
|
|
+ do_config_power_action (manager, GSD_POWER_ACTION_SHUTDOWN, in_lock_screen);
|
|
|
|
+ break;
|
|
|
|
case GSD_POWER_BUTTON_ACTION_SUSPEND:
|
2019-10-04 17:46:22 +02:00
|
|
|
action = GSD_POWER_ACTION_SUSPEND;
|
2016-09-08 13:48:17 +02:00
|
|
|
break;
|