Add output config

This commit is contained in:
emersion 2017-12-06 12:36:06 +01:00
parent 3fe64482bb
commit aaae59026f
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
8 changed files with 512 additions and 2 deletions

View file

@ -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;
};

View file

@ -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);