aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-12-06 12:36:06 +0100
committeremersion <contact@emersion.fr>2017-12-06 12:36:06 +0100
commitaaae59026ff3751190b93277ac6d7566e373c892 (patch)
tree2dc365f9ceeb6a08a98e08d2f79fcc940624b199 /include
parent3fe64482bb269a3dcceeaf1107b9d59dc60eb8d0 (diff)
Add output config
Diffstat (limited to 'include')
-rw-r--r--include/sway/config.h4
-rw-r--r--include/sway/container.h1
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 @@
#include <libinput.h>
#include <stdint.h>
#include <string.h>
+#include <wayland-server.h>
#include <wlr/types/wlr_box.h>
#include <xkbcommon/xkbcommon.h>
#include <time.h>
@@ -80,8 +81,11 @@ struct output_config {
char *name;
int enabled;
int width, height;
+ float refresh_rate;
int x, y;
int scale;
+ enum wl_output_transform transform;
+
char *background;
char *background_option;
};
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);
swayc_t *new_workspace(swayc_t *output, const char *name);
swayc_t *new_view(swayc_t *sibling, struct sway_view *sway_view);
+swayc_t *destroy_output(swayc_t *output);
swayc_t *destroy_view(swayc_t *view);
swayc_t *swayc_parent_by_type(swayc_t *container, enum swayc_types type);