mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-05-01 11:37:58 +02:00
eis: start the device IDs at 1
device IDs are combined with the seat ID, let's make sure the lower bits are never 0 to be able to distinquish between a pure seat ID and a device ID. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
2bb846696f
commit
426c92d59c
1 changed files with 1 additions and 1 deletions
|
|
@ -171,7 +171,7 @@ eis_device_new(struct eis_seat *seat)
|
|||
static uint32_t deviceid;
|
||||
struct eis_device *device = eis_device_create(&seat->object);
|
||||
|
||||
device->id = seat->id | deviceid++;
|
||||
device->id = seat->id | ++deviceid;
|
||||
device->name = xstrdup("unnamed device");
|
||||
device->capabilities = 0;
|
||||
device->state = EIS_DEVICE_STATE_NEW;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue