chiark / gitweb /
logind: make use of EVIOCSMASK input ioctl to mask out events we aren't interested in
authorLennart Poettering <lennart@poettering.net>
Mon, 26 Jun 2017 19:35:12 +0000 (21:35 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 25 Jul 2017 07:46:53 +0000 (09:46 +0200)
commitf7d51059dbf0870887bfab06965c2deb367e785e
tree62d2c16c1ee869ba892ddba72e6306e1c8a67697
parent8b5aa329e08b4f9e5ce8262e2edaa60455f5524f
logind: make use of EVIOCSMASK input ioctl to mask out events we aren't interested in

This way logind will get woken up only when an actual event took place,
and not for every key press on the system.

The ioctl EVIOCSMASK was added by @dvdhrm already in October 2015, for
the use in logind, among others, hence let's actually make use of it
now.

While we are at it, also fix usage of the EVIOCGSW ioctl, where we
assumed a byte array, even though a unsigned long native endian array is
returned.
src/basic/missing.h
src/login/logind-button.c