mirror of
https://github.com/swaywm/sway.git
synced 2025-11-08 13:29:50 -05:00
Initialize outputs from backend and add to tree
This commit is contained in:
parent
0ba6554c4f
commit
7eafcc75f6
9 changed files with 106 additions and 47 deletions
|
|
@ -12,6 +12,7 @@
|
|||
struct sway_server {
|
||||
struct wl_display *wl_display;
|
||||
struct wl_event_loop *wl_event_loop;
|
||||
const char *socket;
|
||||
|
||||
struct wlr_backend *backend;
|
||||
struct wlr_renderer *renderer;
|
||||
|
|
@ -19,11 +20,18 @@ struct sway_server {
|
|||
struct wlr_data_device_manager *data_device_manager;
|
||||
|
||||
struct sway_input *input;
|
||||
};
|
||||
|
||||
bool server_init(struct sway_server *server);
|
||||
void server_fini(struct sway_server *server);
|
||||
struct wl_listener output_add;
|
||||
struct wl_listener output_remove;
|
||||
struct wl_listener output_frame;
|
||||
};
|
||||
|
||||
struct sway_server server;
|
||||
|
||||
bool server_init(struct sway_server *server);
|
||||
void server_fini(struct sway_server *server);
|
||||
void server_run(struct sway_server *server);
|
||||
|
||||
void output_add_notify(struct wl_listener *listener, void *data);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue