aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-09-21 22:07:41 +0200
committerdec05eba <dec05eba@protonmail.com>2021-09-21 22:07:41 +0200
commitac0ff061d6b9ae966f45f2d4b179706e5f8dc9fa (patch)
treeb96313f52703c6199a9502d64fab4c77509fd2bd
parent00eac1ed9befc41712e431c7569e0e86e5dffccf (diff)
Update readme, remove glew dependency
-rw-r--r--README.md5
-rw-r--r--window_texture.h9
2 files changed, 12 insertions, 2 deletions
diff --git a/README.md b/README.md
index 08400dd..717c784 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,7 @@
Utility to get the opengl texture associated with a x11 window
+## Note
+Might now work when using a compositor such as picom when using the glx backend.
+
# Dependencies
-glew, x11, xcomposite
+glx (a library such as libglvnd), x11, xcomposite
diff --git a/window_texture.h b/window_texture.h
index acf349a..ea3ff10 100644
--- a/window_texture.h
+++ b/window_texture.h
@@ -1,8 +1,11 @@
#ifndef WINDOW_TEXTURE_H
#define WINDOW_TEXTURE_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define GLX_GLXEXT_PROTOTYPES
-#include <GL/glew.h>
#include <GL/glx.h>
#include <GL/glxext.h>
#include <X11/Xlib.h>
@@ -28,4 +31,8 @@ int window_texture_on_resize(WindowTexture *self);
GLuint window_texture_get_opengl_texture_id(WindowTexture *self);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* WINDOW_TEXTURE_H */