libinput: do not switch output associations on disable
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 20 Mar 2018 12:45:36 +0000 (14:45 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 20 Apr 2018 12:27:54 +0000 (15:27 +0300)
commit1bbf58ff5858bbb571c5e7d872efdc5b408a722f
tree5368568c0c9b826e992565a2846eef957014827d
parent8dc6db8c76ac3065d1c37b5a7fb375651f6dab49
libinput: do not switch output associations on disable

If an input device is associated to an output that then gets disabled,
there is no case where associating to a different output would be
correct.

The output association is used for absolute positioned input devices,
and an input device like a touchscreen cannot ever be automatically
valid for more than one possible output - the touchscreen display
device.

Therefore do not automatically reassing implicitly associated input
devices to another output. This removes some log spam on shutdown.

In fact, if there can be more than one output at any time, absolute
input devices must be explicitly configured to associate with the
correct output, or the results are essentially undefined in any case.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
libweston/libinput-device.c