aboutsummaryrefslogtreecommitdiff
path: root/src/wl_window.c
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2019-07-16 00:25:20 +0100
committerHarry Jeffery <harry@exec64.co.uk>2019-07-16 00:26:49 +0100
commit364d14b3bd2e9d474a6e38bdce612d69a1286c9a (patch)
treee464eb08c70e041e7c830a652b58cfbbfcc30735 /src/wl_window.c
parent2f79eb8965bfacfb438dde9ddd503eb2cb841443 (diff)
downloadimv-364d14b3bd2e9d474a6e38bdce612d69a1286c9a.tar.gz
x11: Use pipe for custom event notification
Diffstat (limited to 'src/wl_window.c')
-rw-r--r--src/wl_window.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wl_window.c b/src/wl_window.c
index 4a2f134..c3dcb88 100644
--- a/src/wl_window.c
+++ b/src/wl_window.c
@@ -3,7 +3,6 @@
#include <assert.h>
#include <poll.h>
#include <pthread.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
@@ -640,7 +639,7 @@ void imv_window_wait_for_event(struct imv_window *window, double timeout)
wl_display_cancel_read(window->wl_display);
}
- /* Clear the eventfd if hit */
+ /* Clear the pipe if hit */
if (fds[1].revents & POLLIN) {
char out[32];
read(window->pipe_fds[0], &out, sizeof out);