aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-04-06 23:29:18 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2023-04-06 23:29:18 +0200
commit63288c4d50dea63a5a403b86762cf66c9db35325 (patch)
tree1874b283366216f6a91a0084a63a9c44da3d6c2b /wayland.h
create green window using xdg-surface
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h18
1 files changed, 18 insertions, 0 deletions
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 <wayland-client.h>
+#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