chiark / gitweb /
terminal: parse ID_SEAT not only for parents but the device itself
authorDavid Herrmann <dh.herrmann@gmail.com>
Sat, 20 Sep 2014 07:29:11 +0000 (09:29 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sat, 20 Sep 2014 09:46:49 +0000 (11:46 +0200)
commit3e7f6cf9565e007545112f245e69b2bf45866258
tree722ee47b5326ff9c50083166606a1bed56bd8db3
parentc00524c9cc7fb498c7244350e25823b8352f078c
terminal: parse ID_SEAT not only for parents but the device itself

When deciding what seat a device is on, we have to traverse all parents
to find one with an ID_SEAT tag, otherwise, input devices plugged on a
seated USB-hub are not automatically attached to the right seat. But any
tags on the main device still overwrite the tags of the childs, so fix our
logic to check the device itself first, before traversing the parents.
src/libsystemd-terminal/sysview.c