WIP surface refactor
This commit is contained in:
parent
502f584fbf
commit
5fcd796e74
2 changed files with 98 additions and 61 deletions
29
wayland.h
29
wayland.h
|
|
@ -8,6 +8,22 @@
|
|||
/// A desktop layer (wallpaper)
|
||||
#define OUTPUT_LAYER 1
|
||||
|
||||
struct surface {
|
||||
struct wl_surface *wl_surface;
|
||||
struct xdg_surface *xdg_surface;
|
||||
struct xdg_toplevel *xdg_toplevel;
|
||||
struct wl_egl_window *egl_window;
|
||||
struct zwlr_layer_surface_v1 *zwlr_layer_surface_v1;
|
||||
struct wl_output *wl_output;
|
||||
|
||||
EGLSurface egl_surface;
|
||||
};
|
||||
|
||||
struct surface_list {
|
||||
struct surface data;
|
||||
struct surface_list *next;
|
||||
};
|
||||
|
||||
struct client_state {
|
||||
int width, height;
|
||||
int running;
|
||||
|
|
@ -17,21 +33,12 @@ struct client_state {
|
|||
struct wl_registry *wl_registry;
|
||||
struct wl_compositor *wl_compositor;
|
||||
struct xdg_wm_base *xdg_wm_base;
|
||||
/* Objects */
|
||||
struct wl_surface *wl_surface;
|
||||
struct xdg_surface *xdg_surface;
|
||||
struct xdg_toplevel *xdg_toplevel;
|
||||
|
||||
struct wl_egl_window *egl_window;
|
||||
|
||||
// wlr_layer_shell
|
||||
struct zwlr_layer_shell_v1 *zwlr_layer_shell_v1;
|
||||
struct zwlr_layer_surface_v1 *zwlr_layer_surface_v1;
|
||||
struct wl_output *wl_output;
|
||||
|
||||
struct surface_list *surface_list;
|
||||
|
||||
EGLDisplay egl_display;
|
||||
EGLConfig egl_config;
|
||||
EGLSurface egl_surface;
|
||||
EGLContext egl_context;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue