• Peter Hutterer's avatar
    Apply the capabilities checks on subdevices when applying the config · 9d9f59fd
    Peter Hutterer authored
    Properties are initialized on the correct devices only but on resume we'd just
    blindly apply the config from our device. Depending on the resume order, this
    would mean we'd apply a previously set config with a default config.
    
    Example:
    * pointer device with keyboard subdevice
    * pointer device exports natural scrolling, keyboard device does not and
      remains at default (off)
    * client enables natural scrolling on the pointer device
    * VT switch away, VT switch back
    * pointer device gets enabled first, enables natural scrolling on the
      libinput device
    * keyboard device gets enabled second, resets to the default value
    Reported-by: yshui's avatarYuxuan Shui <yshuiv7@gmail.com>
    Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
    Tested-by: yshui's avatarYuxuan Shui <yshuiv7@gmail.com>
    9d9f59fd
xf86libinput.c 146 KB