summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sway/config.h5
-rw-r--r--include/sway/container.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/include/sway/config.h b/include/sway/config.h
index 7de85ab7..231356f2 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 int32_t transform;
88
85 char *background; 89 char *background;
86 char *background_option; 90 char *background_option;
87}; 91};
@@ -360,6 +364,7 @@ void apply_input_config(struct input_config *ic, struct libinput_device *dev);
360void free_input_config(struct input_config *ic); 364void free_input_config(struct input_config *ic);
361 365
362int output_name_cmp(const void *item, const void *data); 366int output_name_cmp(const void *item, const void *data);
367void output_config_defaults(struct output_config *oc);
363void merge_output_config(struct output_config *dst, struct output_config *src); 368void merge_output_config(struct output_config *dst, struct output_config *src);
364/** Sets up a WLC output handle based on a given output_config. 369/** Sets up a WLC output handle based on a given output_config.
365 */ 370 */
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);
132swayc_t *new_workspace(swayc_t *output, const char *name); 132swayc_t *new_workspace(swayc_t *output, const char *name);
133swayc_t *new_view(swayc_t *sibling, struct sway_view *sway_view); 133swayc_t *new_view(swayc_t *sibling, struct sway_view *sway_view);
134 134
135swayc_t *destroy_output(swayc_t *output);
135swayc_t *destroy_view(swayc_t *view); 136swayc_t *destroy_view(swayc_t *view);
136 137
137swayc_t *swayc_parent_by_type(swayc_t *container, enum swayc_types type); 138swayc_t *swayc_parent_by_type(swayc_t *container, enum swayc_types type);