mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-02-15 18:30:34 +01:00
tools: handle device removal
Well, print it, anyway. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
23c34fc77d
commit
693b3767f2
1 changed files with 7 additions and 0 deletions
|
|
@ -56,6 +56,8 @@ int main(int argc, char **argv)
|
|||
return 1;
|
||||
}
|
||||
|
||||
printf("server: waiting on %s\n", socketpath);
|
||||
|
||||
struct pollfd fds = {
|
||||
.fd = eis_get_fd(eis),
|
||||
.events = POLLIN,
|
||||
|
|
@ -97,6 +99,11 @@ int main(int argc, char **argv)
|
|||
eis_device_connect(device);
|
||||
break;
|
||||
}
|
||||
case EIS_EVENT_DEVICE_REMOVED:
|
||||
{
|
||||
printf("server: device removed\n");
|
||||
break;
|
||||
}
|
||||
case EIS_EVENT_POINTER_MOTION:
|
||||
{
|
||||
struct eis_event_pointer *p = eis_event_get_pointer_event(e);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue