moved things around
This commit is contained in:
parent
7e2171681d
commit
35d8ca7358
3 changed files with 45 additions and 10 deletions
13
wayland.h
13
wayland.h
|
|
@ -1,10 +1,17 @@
|
|||
#include <EGL/egl.h>
|
||||
#include <wayland-egl.h>
|
||||
#include "xdg-shell-protocol.h"
|
||||
#include "wlr-layer-shell-unstable-v1-protocol.h"
|
||||
|
||||
/// A normal window
|
||||
#define OUTPUT_WINDOW 0;
|
||||
/// A desktop layer (wallpaper)
|
||||
#define OUTPUT_LAYER 1;
|
||||
|
||||
struct client_state {
|
||||
int width, height;
|
||||
int running;
|
||||
int output_type;
|
||||
/* Globals */
|
||||
struct wl_display *wl_display;
|
||||
struct wl_registry *wl_registry;
|
||||
|
|
@ -17,12 +24,16 @@ struct client_state {
|
|||
|
||||
struct wl_egl_window *egl_window;
|
||||
|
||||
// wlr_layer_shell
|
||||
struct zwlr_layer_shell_v1 *zwlr_layer_shell_v1;
|
||||
struct wl_output *wl_output;
|
||||
|
||||
EGLDisplay egl_display;
|
||||
EGLConfig egl_config;
|
||||
EGLSurface egl_surface;
|
||||
EGLContext egl_context;
|
||||
};
|
||||
|
||||
void wayland_init(struct client_state *state);
|
||||
void wayland_init(struct client_state *state, int output_type);
|
||||
void commit(struct client_state *state);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue