mirror of
https://github.com/swaywm/sway.git
synced 2025-11-22 06:59:48 -05:00
Remove internal references to DPMS
While at it, use an int for the config field, just like we do for all other fields.
This commit is contained in:
parent
798e3c8858
commit
b69d637f7a
5 changed files with 22 additions and 27 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue