diff options
Diffstat (limited to 'src/input.c')
-rw-r--r-- | src/input.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/input.c b/src/input.c index 1d3f1f6..7d7a3b8 100644 --- a/src/input.c +++ b/src/input.c @@ -13,7 +13,7 @@ #include "client.h" #include "display.h" #include "input.h" -#include "server.h" +#include "fd.h" #define MAX_DEVICES 16 #define DEVICE_PATH_LEN 32 @@ -246,7 +246,7 @@ open_device(const char *path) if ((bits & (1 << EV_ABS)) && configure_absolute_device(fd) < 0) goto err; - if (server_set_fd_handler(fd, input_event, d) < 0) + if (fd_set_handler(fd, input_event, d) < 0) goto err; TAILQ_INSERT_TAIL(&devices, d, next); @@ -265,7 +265,7 @@ static void close_device(struct device *d) { ioctl(d->fd, EVIOCGRAB, 0); - server_set_fd_handler(d->fd, NULL, NULL); + fd_set_handler(d->fd, NULL, NULL); close(d->fd); TAILQ_REMOVE(&devices, d, next); free(d); @@ -381,7 +381,7 @@ input_initialize(int argc, char *argv[]) udev_enumerate_unref(enumerate); fd = udev_monitor_get_fd(udev_monitor); - if (server_set_fd_handler(fd, udev_event, NULL) < 0) + if (fd_set_handler(fd, udev_event, NULL) < 0) goto err; absx = display_get_width() / 2; @@ -401,7 +401,7 @@ input_shutdown(void) udev = udev_monitor_get_udev(udev_monitor); fd = udev_monitor_get_fd(udev_monitor); - server_set_fd_handler(fd, NULL, NULL); + fd_set_handler(fd, NULL, NULL); udev_monitor_unref(udev_monitor); udev_unref(udev); |