Small cleanup

This commit is contained in:
Adrien Moulin
2022-08-05 23:22:39 +02:00
parent c7c438f2d6
commit ce4d7f9fc8

View File

@@ -69,8 +69,7 @@ void evdev_thread_func()
{
struct input_event ev;
if (pfds[i].revents & POLLIN) {
int rc;
while ((rc = libevdev_next_event(evdev_mice[i].second, LIBEVDEV_READ_FLAG_NORMAL, &ev)) == 0)
while (libevdev_next_event(evdev_mice[i].second, LIBEVDEV_READ_FLAG_NORMAL, &ev) == 0)
{
if (ev.type == EV_REL && mouse_capture)
{