• Peter Hutterer's avatar
    Open sysfs files directly instead of going through the server · aae2c8ad
    Peter Hutterer authored
    Only use-case here are pad mode LEDs that now live in /sys/class/leds. Asking
    the server to open them is pointless, the server only knows how to open Option
    "Device". And since the LEDs are in sysfs we should have access to them
    anyway, so no need for jumping through or hula-ing hoops.
    xf86CloseSerial() works as intended as it's a slim wrapper around close(), so
    we only have to worry about the open() path here.
    Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
Last commit
Last update
Makefile.am Loading commit data...
bezier.c Loading commit data...
bezier.h Loading commit data...
draglock.c Loading commit data...
draglock.h Loading commit data...
xf86libinput.c Loading commit data...