Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quirks: add support without udev #1

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
evdev-tablet: use quirks_fetch_for_evdev
  • Loading branch information
illiliti committed Mar 12, 2022

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
commit cdc29a58355d147d16cfbd799fe5b379e3e8f0fe
8 changes: 8 additions & 0 deletions src/evdev-tablet.c
Original file line number Diff line number Diff line change
@@ -1089,7 +1089,11 @@ tool_set_pressure_thresholds(struct tablet_dispatch *tablet,
goto out;

quirks = evdev_libinput_context(device)->quirks;
#if HAVE_UDEV
q = quirks_fetch_for_device(quirks, device->udev_device);
#else
q = quirks_fetch_for_evdev(quirks, device->evdev);
#endif

tool->pressure.offset = pressure->minimum;

@@ -2400,7 +2404,11 @@ tablet_init_smoothing(struct evdev_device *device,
bool use_smoothing = true;

quirks = evdev_libinput_context(device)->quirks;
#if HAVE_UDEV
q = quirks_fetch_for_device(quirks, device->udev_device);
#else
q = quirks_fetch_for_evdev(quirks, device->evdev);
#endif

/* By default, always enable smoothing except on AES devices.
* AttrTabletSmoothing can override this, if necessary.