libinput: make setting the same output a no-op

Graphics / Wayland / Weston - Pekka Paalanen [collabora.co.uk] - 20 April 2018 12:27 EDT

In the future evdev_device_set_output() will start getting called more often, redundantly. Short-circuit the setting if the chosen output is already set for an input device. This reduces churn in the logs.

018e6ade libinput: make setting the same output a no-op
libweston/libinput-device.c | 3 +++
1 file changed, 3 insertions(+)

Upstream: cgit.freedesktop.org


  • Share