mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-25 01:10:08 +01:00
fallback: explicitly ignore external keyboards for the tablet mode switch
We already had a check to only pair trackpoints and internal keyboards but for the ThinkPad Compact Bluetooth Keyboard with TrackPoint that isn't sufficient - it's an external keyboard that contains a trackpoint. Explicitly ignore external keyboard, we never want to shut those down in tablet mode anyway. Fixes #119 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
11987b4194
commit
b44f6b4eef
1 changed files with 3 additions and 0 deletions
|
|
@ -1294,6 +1294,9 @@ fallback_keyboard_pair_tablet_mode(struct evdev_device *keyboard,
|
|||
struct fallback_dispatch *dispatch =
|
||||
fallback_dispatch(keyboard->dispatch);
|
||||
|
||||
if ((keyboard->tags & EVDEV_TAG_EXTERNAL_KEYBOARD))
|
||||
return;
|
||||
|
||||
if ((keyboard->tags &
|
||||
(EVDEV_TAG_TRACKPOINT|EVDEV_TAG_INTERNAL_KEYBOARD)) == 0)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue