diff options
author | emersion <contact@emersion.fr> | 2017-12-06 12:36:06 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-12-06 12:36:06 +0100 |
commit | aaae59026ff3751190b93277ac6d7566e373c892 (patch) | |
tree | 2dc365f9ceeb6a08a98e08d2f79fcc940624b199 /include | |
parent | Merge pull request #1498 from emersion/config (diff) | |
download | sway-aaae59026ff3751190b93277ac6d7566e373c892.tar.gz sway-aaae59026ff3751190b93277ac6d7566e373c892.tar.zst sway-aaae59026ff3751190b93277ac6d7566e373c892.zip |
Add output config
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/config.h | 4 | ||||
-rw-r--r-- | include/sway/container.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/sway/config.h b/include/sway/config.h index 7de85ab7..1b49c5c9 100644 --- a/include/sway/config.h +++ b/include/sway/config.h | |||
@@ -6,6 +6,7 @@ | |||
6 | #include <libinput.h> | 6 | #include <libinput.h> |
7 | #include <stdint.h> | 7 | #include <stdint.h> |
8 | #include <string.h> | 8 | #include <string.h> |
9 | #include <wayland-server.h> | ||
9 | #include <wlr/types/wlr_box.h> | 10 | #include <wlr/types/wlr_box.h> |
10 | #include <xkbcommon/xkbcommon.h> | 11 | #include <xkbcommon/xkbcommon.h> |
11 | #include <time.h> | 12 | #include <time.h> |
@@ -80,8 +81,11 @@ struct output_config { | |||
80 | char *name; | 81 | char *name; |
81 | int enabled; | 82 | int enabled; |
82 | int width, height; | 83 | int width, height; |
84 | float refresh_rate; | ||
83 | int x, y; | 85 | int x, y; |
84 | int scale; | 86 | int scale; |
87 | enum wl_output_transform transform; | ||
88 | |||
85 | char *background; | 89 | char *background; |
86 | char *background_option; | 90 | char *background_option; |
87 | }; | 91 | }; |
diff --git a/include/sway/container.h b/include/sway/container.h index 08a98ed9..e3f84fc6 100644 --- a/include/sway/container.h +++ b/include/sway/container.h | |||
@@ -132,6 +132,7 @@ swayc_t *new_output(struct sway_output *sway_output); | |||
132 | swayc_t *new_workspace(swayc_t *output, const char *name); | 132 | swayc_t *new_workspace(swayc_t *output, const char *name); |
133 | swayc_t *new_view(swayc_t *sibling, struct sway_view *sway_view); | 133 | swayc_t *new_view(swayc_t *sibling, struct sway_view *sway_view); |
134 | 134 | ||
135 | swayc_t *destroy_output(swayc_t *output); | ||
135 | swayc_t *destroy_view(swayc_t *view); | 136 | swayc_t *destroy_view(swayc_t *view); |
136 | 137 | ||
137 | swayc_t *swayc_parent_by_type(swayc_t *container, enum swayc_types type); | 138 | swayc_t *swayc_parent_by_type(swayc_t *container, enum swayc_types type); |