mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-09 15:18:06 +02:00
touchpad: don't pair external touchpads with lid/tablet mode switches
https://gitlab.freedesktop.org/libinput/libinput/issues/29
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 46b64c7363)
This commit is contained in:
parent
ba29b3a96c
commit
e1fe0cd5c5
1 changed files with 6 additions and 0 deletions
|
|
@ -2253,6 +2253,9 @@ tp_pair_lid_switch(struct evdev_device *touchpad,
|
||||||
if ((lid_switch->tags & EVDEV_TAG_LID_SWITCH) == 0)
|
if ((lid_switch->tags & EVDEV_TAG_LID_SWITCH) == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (touchpad->tags & EVDEV_TAG_EXTERNAL_TOUCHPAD)
|
||||||
|
return;
|
||||||
|
|
||||||
if (tp->lid_switch.lid_switch == NULL) {
|
if (tp->lid_switch.lid_switch == NULL) {
|
||||||
evdev_log_debug(touchpad,
|
evdev_log_debug(touchpad,
|
||||||
"lid_switch: activated for %s<->%s\n",
|
"lid_switch: activated for %s<->%s\n",
|
||||||
|
|
@ -2278,6 +2281,9 @@ tp_pair_tablet_mode_switch(struct evdev_device *touchpad,
|
||||||
if (tp->tablet_mode_switch.tablet_mode_switch)
|
if (tp->tablet_mode_switch.tablet_mode_switch)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (touchpad->tags & EVDEV_TAG_EXTERNAL_TOUCHPAD)
|
||||||
|
return;
|
||||||
|
|
||||||
evdev_log_debug(touchpad,
|
evdev_log_debug(touchpad,
|
||||||
"tablet_mode_switch: activated for %s<->%s\n",
|
"tablet_mode_switch: activated for %s<->%s\n",
|
||||||
touchpad->devname,
|
touchpad->devname,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue