mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-21 14:30:36 +01:00
tools: fix missing fd assignment in libinput-debug-tablet
The fd opened for the evdev device is never stored in ctx->fds[1].fd so we never poll for it. Real impact was limited since we do poll for the libinput fd and we process libevdev events whenever any of the fds triggers. Co-Authored-by: Claude Code <noreply@anthropic.com> Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1444>
This commit is contained in:
parent
c8c1c07a2a
commit
45150cc6ec
1 changed files with 1 additions and 0 deletions
|
|
@ -276,6 +276,7 @@ handle_device_added(struct context *ctx, struct libinput_event *ev)
|
|||
int fd = open(devnode, O_RDONLY | O_NONBLOCK);
|
||||
assert(fd != -1);
|
||||
assert(libevdev_new_from_fd(fd, &ctx->evdev) == 0);
|
||||
ctx->fds[1].fd = fd;
|
||||
}
|
||||
|
||||
udev_device_unref(udev_device);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue