-
Notifications
You must be signed in to change notification settings - Fork 1
/
wl.h
39 lines (31 loc) · 926 Bytes
/
wl.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef _WAYAB_WL_H
#define _WAYAB_WL_H
#include "utils.h"
#include <stddef.h>
#include <wayland-client.h>
#include "protocols/wlr-layer-shell-unstable-v1-client-protocol.h"
#include "protocols/xdg-output-unstable-v1-client-protocol.h"
/// init process:
/// 1. connect display
/// 2. block display listener
/// 2.1 compositor
/// 2.2 output
/// 2.3 layer_shell
/// 3. surface created by compositor
/// 4. layer_shell listener
/// 4.1 layer_surface with output
/// 5. layer_surface listener
struct wayab_wl {
/* connect */
struct wl_display *display;
/* display listener */
struct wl_compositor *compositor;
struct zwlr_layer_shell_v1 *layer_shell;
struct zxdg_output_manager_v1 *output_manager;
struct wayab_config *config;
struct wl_list renderers;
};
struct wayab_wl *wayab_wl_new(struct wayab_config *);
int wayab_wl_destroy(struct wayab_wl *);
void wayab_wl_loop(struct wayab_wl *);
#endif