aboutsummaryrefslogtreecommitdiff
path: root/pool-buffer.h
diff options
context:
space:
mode:
authoradnano <me@adnano.co>2024-02-27 11:23:12 -0500
committeradnano <me@adnano.co>2024-02-27 11:23:12 -0500
commite8782db9c840e42827dafa4ec1ca9849f91b9b59 (patch)
tree0a911c8c81ee7459508633e000beb352e6df2d5a /pool-buffer.h
parent1104e8e51b366e7804b94365f8d6a84752693538 (diff)
downloadwmenu-e8782db9c840e42827dafa4ec1ca9849f91b9b59.tar.gz
Move menu and rendering logic into separate files
Diffstat (limited to 'pool-buffer.h')
-rw-r--r--pool-buffer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/pool-buffer.h b/pool-buffer.h
index 1549041..e07802d 100644
--- a/pool-buffer.h
+++ b/pool-buffer.h
@@ -1,4 +1,7 @@
/* Taken from sway. MIT licensed */
+#ifndef WMENU_POOL_BUFFER_H
+#define WMENU_POOL_BUFFER_H
+
#include <cairo.h>
#include <pango/pangocairo.h>
#include <stdbool.h>
@@ -19,3 +22,5 @@ struct pool_buffer {
struct pool_buffer *get_next_buffer(struct wl_shm *shm,
struct pool_buffer pool[static 2], int32_t width, int32_t height, int32_t scale);
void destroy_buffer(struct pool_buffer *buffer);
+
+#endif