From b69d637f7a34e239e48a4267ae94a5e7087b5834 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 23 Jun 2022 21:03:32 +0200 Subject: Remove internal references to DPMS While at it, use an int for the config field, just like we do for all other fields. --- include/sway/config.h | 8 +------- include/sway/output.h | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) (limited to 'include') 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; -- cgit v1.2.3