aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-06-23 21:03:32 +0200
committerKirill Primak <vyivel@eclair.cafe>2022-07-04 21:58:24 +0300
commitb69d637f7a34e239e48a4267ae94a5e7087b5834 (patch)
tree63e33a9a15a08c5ebe9bf68183a10bad86997ce7 /include
parent798e3c8858fdddb0e548d649cc61b6777565de98 (diff)
Remove internal references to DPMS
While at it, use an int for the config field, just like we do for all other fields.
Diffstat (limited to 'include')
-rw-r--r--include/sway/config.h8
-rw-r--r--include/sway/output.h2
2 files changed, 2 insertions, 8 deletions
diff --git a/include/sway/config.h b/include/sway/config.h
index 2b4aa972..68c06846 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -247,12 +247,6 @@ struct seat_config {
} xcursor_theme;
};
-enum config_dpms {
- DPMS_IGNORE,
- DPMS_ON,
- DPMS_OFF,
-};
-
enum scale_filter_mode {
SCALE_FILTER_DEFAULT, // the default is currently smart
SCALE_FILTER_LINEAR,
@@ -274,6 +268,7 @@ enum render_bit_depth {
struct output_config {
char *name;
int enabled;
+ int power;
int width, height;
float refresh_rate;
int custom_mode;
@@ -290,7 +285,6 @@ struct output_config {
char *background;
char *background_option;
char *background_fallback;
- enum config_dpms dpms_state;
};
/**
diff --git a/include/sway/output.h b/include/sway/output.h
index 26b9709f..6d8319bf 100644
--- a/include/sway/output.h
+++ b/include/sway/output.h
@@ -32,7 +32,7 @@ struct sway_output {
int width, height; // transformed buffer size
enum wl_output_subpixel detected_subpixel;
enum scale_filter_mode scale_filter;
- // last applied mode when the output is DPMS'ed
+ // last applied mode when the output is powered off
struct wlr_output_mode *current_mode;
bool enabling, enabled;