From 63288c4d50dea63a5a403b86762cf66c9db35325 Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Thu, 6 Apr 2023 23:29:18 +0200 Subject: create green window using xdg-surface --- wayland.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 wayland.h (limited to 'wayland.h') diff --git a/wayland.h b/wayland.h new file mode 100644 index 0000000..494c0e3 --- /dev/null +++ b/wayland.h @@ -0,0 +1,18 @@ +#ifndef WAYLAND_H +#define WAYLAND_H + +#include +#include "xdg-shell-client-protocol.h" + +struct client_state { + struct wl_display *display; + struct wl_registry *registry; + struct wl_shm *shm; + struct wl_compositor *compositor; + struct xdg_wm_base *wm_base; + struct wl_seat *seat; +}; + +int allocate_shm_file(size_t size); + +#endif -- cgit v1.2.3-70-g09d2