aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/window_manager.c2
-rw-r--r--src/window_texture.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/src/window_manager.c b/src/window_manager.c
index ec26842..f61084f 100644
--- a/src/window_manager.c
+++ b/src/window_manager.c
@@ -259,7 +259,7 @@ static void* thread_main(void *userdata) {
XSelectInput(dpy, root, wa.event_mask);
while(window_manager->running) {
- FD_ZERO(&in_fds);
+ FD_ZERO(&in_fds); /* TODO: Optimize */
FD_SET(x11_fd, &in_fds);
/* Wake up thread every 500ms ms if no events are received */
diff --git a/src/window_texture.c b/src/window_texture.c
index 846ee0d..4bd2258 100644
--- a/src/window_texture.c
+++ b/src/window_texture.c
@@ -70,8 +70,10 @@ int window_texture_on_resize(WindowTexture *self) {
GLX_DRAWABLE_TYPE, GLX_PIXMAP_BIT | GLX_WINDOW_BIT,
GLX_BIND_TO_TEXTURE_TARGETS_EXT, GLX_TEXTURE_2D_BIT_EXT,
/*GLX_BIND_TO_MIPMAP_TEXTURE_EXT, True,*/
- GLX_DOUBLEBUFFER, False,
- GLX_BUFFER_SIZE, 32,
+ GLX_BUFFER_SIZE, 24,
+ GLX_RED_SIZE, 8,
+ GLX_GREEN_SIZE, 8,
+ GLX_BLUE_SIZE, 8,
GLX_ALPHA_SIZE, 0,
None
};