mirror of
https://github.com/swaywm/sway.git
synced 2025-11-01 22:58:41 -04:00
Add output config
This commit is contained in:
parent
3fe64482bb
commit
aaae59026f
8 changed files with 512 additions and 2 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue