diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2018-09-20 10:01:49 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2018-09-20 12:41:24 +1000 |
commit | 522a1dca7fe565a56f1e47c7365c88936641b2a3 (patch) | |
tree | aa48ca74eed819bda2d2d6d721ff56bc3732e1c1 /src/evdev-fallback.c | |
parent | 8a5c0b98317e22aaecc9fa39d764e7e401708e30 (diff) | |
download | libinput-522a1dca7fe565a56f1e47c7365c88936641b2a3.tar.gz |
evdev: switch the model flags to use the quirks directly
Anything that merely requires a once-off check during initialization can just
use the quirks directly, no need to copy them over to the model flags.
Fixes #146
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/evdev-fallback.c')
-rw-r--r-- | src/evdev-fallback.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/evdev-fallback.c b/src/evdev-fallback.c index c498393d..f5925fb1 100644 --- a/src/evdev-fallback.c +++ b/src/evdev-fallback.c @@ -1301,7 +1301,8 @@ fallback_keyboard_pair_tablet_mode(struct evdev_device *keyboard, (EVDEV_TAG_TRACKPOINT|EVDEV_TAG_INTERNAL_KEYBOARD)) == 0) return; - if (keyboard->model_flags & EVDEV_MODEL_TABLET_MODE_NO_SUSPEND) + if (evdev_device_has_model_quirk(keyboard, + QUIRK_MODEL_TABLET_MODE_NO_SUSPEND)) return; if ((tablet_mode_switch->tags & EVDEV_TAG_TABLET_MODE_SWITCH) == 0) |