mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
[psm] Fix calculation for clickpad softbuttons at the top
On laptops like the ThinkPad X240, ClickPad buttons are located at the top. The hw.psm.synaptics.softbuttons_y sysctl was supposed to allow this by setting the value to a negative one (e.g. -1700). However, the condition was wrong (double negative), and doing that placed the buttons in an unreachable area. PR: 216342 Submitted by: Greg V <greg@unrelenting.technology> MFC after: 1 week
This commit is contained in:
parent
c6a4ba5a38
commit
f3bae0ea25
1 changed files with 1 additions and 1 deletions
|
|
@ -3194,7 +3194,7 @@ psmgestures(struct psm_softc *sc, finger_t *fingers, int nfingers,
|
|||
if (sc->synhw.capClickPad && ms->button & MOUSE_BUTTON1DOWN) {
|
||||
y_ok = sc->syninfo.softbuttons_y >= 0 ?
|
||||
start_y < sc->syninfo.softbuttons_y :
|
||||
start_y > max_y - sc->syninfo.softbuttons_y;
|
||||
start_y > max_y + sc->syninfo.softbuttons_y;
|
||||
|
||||
center_button = MOUSE_BUTTON2DOWN;
|
||||
center_x = sc->syninfo.softbutton2_x;
|
||||
|
|
|
|||
Loading…
Reference in a new issue