mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-02-15 08:00:31 +01:00
libeis: warn if connecting a device without capabilities
This is always a bug - where the device doesn't have recognized capabilities, it should be rejected. libeis does the right thing and converts the eis_device_connect() to a _disconnect() call but it's still useful to warn the caller. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
070bdd9668
commit
3fc94f03b5
1 changed files with 3 additions and 0 deletions
|
|
@ -297,6 +297,9 @@ eis_device_connect(struct eis_device *device)
|
|||
return;
|
||||
|
||||
if (device->capabilities_mask == 0) {
|
||||
struct eis_client *client = eis_device_get_client(device);
|
||||
log_bug(eis_client_get_context(client),
|
||||
"Connecting a device without capabilities\n");
|
||||
eis_device_disconnect(device);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue