diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/commands.h | 1 | ||||
-rw-r--r-- | include/sway/config.h | 1 | ||||
-rw-r--r-- | include/sway/output.h | 1 | ||||
-rw-r--r-- | include/util.h | 3 |
4 files changed, 6 insertions, 0 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h index 1c147c5a..7533a14d 100644 --- a/include/sway/commands.h +++ b/include/sway/commands.h | |||
@@ -261,6 +261,7 @@ sway_cmd output_cmd_enable; | |||
261 | sway_cmd output_cmd_mode; | 261 | sway_cmd output_cmd_mode; |
262 | sway_cmd output_cmd_position; | 262 | sway_cmd output_cmd_position; |
263 | sway_cmd output_cmd_scale; | 263 | sway_cmd output_cmd_scale; |
264 | sway_cmd output_cmd_subpixel; | ||
264 | sway_cmd output_cmd_transform; | 265 | sway_cmd output_cmd_transform; |
265 | 266 | ||
266 | sway_cmd seat_cmd_attach; | 267 | sway_cmd seat_cmd_attach; |
diff --git a/include/sway/config.h b/include/sway/config.h index 8970696c..d49120a0 100644 --- a/include/sway/config.h +++ b/include/sway/config.h | |||
@@ -184,6 +184,7 @@ struct output_config { | |||
184 | int x, y; | 184 | int x, y; |
185 | float scale; | 185 | float scale; |
186 | int32_t transform; | 186 | int32_t transform; |
187 | enum wl_output_subpixel subpixel; | ||
187 | 188 | ||
188 | char *background; | 189 | char *background; |
189 | char *background_option; | 190 | char *background_option; |
diff --git a/include/sway/output.h b/include/sway/output.h index 8015f211..c336c559 100644 --- a/include/sway/output.h +++ b/include/sway/output.h | |||
@@ -31,6 +31,7 @@ struct sway_output { | |||
31 | 31 | ||
32 | int lx, ly; // layout coords | 32 | int lx, ly; // layout coords |
33 | int width, height; // transformed buffer size | 33 | int width, height; // transformed buffer size |
34 | enum wl_output_subpixel detected_subpixel; | ||
34 | 35 | ||
35 | bool enabled, configured; | 36 | bool enabled, configured; |
36 | list_t *workspaces; | 37 | list_t *workspaces; |
diff --git a/include/util.h b/include/util.h index 1fd772c0..6a668fd6 100644 --- a/include/util.h +++ b/include/util.h | |||
@@ -3,6 +3,7 @@ | |||
3 | 3 | ||
4 | #include <stdint.h> | 4 | #include <stdint.h> |
5 | #include <stdbool.h> | 5 | #include <stdbool.h> |
6 | #include <wayland-server-protocol.h> | ||
6 | 7 | ||
7 | /** | 8 | /** |
8 | * Wrap i into the range [0, max[ | 9 | * Wrap i into the range [0, max[ |
@@ -29,4 +30,6 @@ bool parse_boolean(const char *boolean, bool current); | |||
29 | */ | 30 | */ |
30 | float parse_float(const char *value); | 31 | float parse_float(const char *value); |
31 | 32 | ||
33 | const char *sway_wl_output_subpixel_to_string(enum wl_output_subpixel subpixel); | ||
34 | |||
32 | #endif | 35 | #endif |