diff options
Diffstat (limited to 'Xi/listdev.c')
-rw-r--r-- | Xi/listdev.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Xi/listdev.c b/Xi/listdev.c index 160ad02fb..a9fd40156 100644 --- a/Xi/listdev.c +++ b/Xi/listdev.c @@ -328,6 +328,10 @@ ProcXListInputDevices(ClientPtr client) AddOtherInputDevices(); + SizeDeviceInfo(inputInfo.keyboard, &namesize, &size); + SizeDeviceInfo(inputInfo.pointer, &namesize, &size); + numdevs = 2; + for (d = inputInfo.devices; d; d = d->next) { SizeDeviceInfo(d, &namesize, &size); numdevs++; @@ -344,6 +348,11 @@ ProcXListInputDevices(ClientPtr client) savbuf = devbuf; dev = (xDeviceInfoPtr) devbuf; + ListDeviceInfo(client, inputInfo.keyboard, dev++, + &devbuf, &classbuf, &namebuf); + ListDeviceInfo(client, inputInfo.pointer, dev++, + &devbuf, &classbuf, &namebuf); + for (d = inputInfo.devices; d; d = d->next, dev++) ListDeviceInfo(client, d, dev, &devbuf, &classbuf, &namebuf); for (d = inputInfo.off_devices; d; d = d->next, dev++) |