diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2022-06-23 21:03:32 +0200 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2022-06-23 21:03:32 +0200 |
| commit | 3eaa1aab5878f461d203293f1a82adad8de7598d (patch) | |
| tree | 63e33a9a15a08c5ebe9bf68183a10bad86997ce7 /include | |
| parent | ca34611e2067f2d46eb96ce1681e110e51c1f605 (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.h | 8 | ||||
| -rw-r--r-- | include/sway/output.h | 2 |
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; |
