fix
This commit is contained in:
parent
ea6d60ce95
commit
9081bd6d9c
5 changed files with 67 additions and 39 deletions
|
@ -21,23 +21,30 @@
|
|||
#include <wlr/types/wlr_seat.h>
|
||||
#include <wlr/types/wlr_xdg_shell.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include "structs.h"
|
||||
#include "config.h"
|
||||
#include "die.h"
|
||||
|
||||
struct server {
|
||||
struct wl_display *wl_display;
|
||||
|
||||
struct wl_event_loop *wl_event_loop;
|
||||
struct wlr_backend *backend;
|
||||
struct wlr_renderer *renderer;
|
||||
struct wlr_scene *scene;
|
||||
struct wlr_output_layout *output_layout;
|
||||
|
||||
struct wlr_allocator *alloc;
|
||||
|
||||
/* Monitors */
|
||||
struct wl_list outputs;
|
||||
struct wl_listener new_output;
|
||||
};
|
||||
|
||||
struct output {
|
||||
struct wlr_output *wlr_output;
|
||||
struct server *server;
|
||||
|
||||
struct timespec last_frame;
|
||||
|
||||
struct wl_listener destroy;
|
||||
struct wl_listener frame;
|
||||
|
||||
struct wl_list link;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
#ifndef _STRUCTS_H
|
||||
#define _STRUCTS_H
|
||||
|
||||
typedef struct {
|
||||
const char *name;
|
||||
int x;
|
||||
int y;
|
||||
int res_x;
|
||||
int res_y;
|
||||
} MonitorRule;
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue