aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-05-13 10:11:10 -0400
committerGitHub <noreply@github.com>2018-05-13 10:11:10 -0400
commit61aa0937a75d23c0f2a00a8cea52c08bf69164dd (patch)
tree5f2e7817313b657431870862d4059b62bcd2e396 /include
parent0c96d757d0d5d1762390dd119cbe344e8781c19f (diff)
parentf40049b5cd8d0274a62399cbdd1f8fd0e7668be3 (diff)
Merge pull request #1824 from snaggen/idle
DPMS and lock handling
Diffstat (limited to 'include')
-rw-r--r--include/sway/config.h7
-rw-r--r--include/sway/server.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/include/sway/config.h b/include/sway/config.h
index b20458cb..f77c3b50 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -107,6 +107,12 @@ struct seat_config {
list_t *attachments; // list of seat_attachment configs
};
+enum config_dpms {
+ DPMS_IGNORE,
+ DPMS_ON,
+ DPMS_OFF
+};
+
/**
* Size and position configuration for a particular output.
*
@@ -123,6 +129,7 @@ struct output_config {
char *background;
char *background_option;
+ enum config_dpms dpms_state;
};
/**
diff --git a/include/sway/server.h b/include/sway/server.h
index 296fbf22..ac685bf8 100644
--- a/include/sway/server.h
+++ b/include/sway/server.h
@@ -21,6 +21,7 @@ struct sway_server {
struct wlr_compositor *compositor;
struct wlr_data_device_manager *data_device_manager;
+ struct wlr_idle *idle;
struct sway_input_manager *input;