Skip to content

Commit

Permalink
fix: touchpad enable status misjudgment
Browse files Browse the repository at this point in the history
only DisableTpad status and TPadEnable status is false to enable touchpad

Log: fix close DisableTpad, touchpad not enable
  • Loading branch information
dengbo11 committed Sep 11, 2023
1 parent 0a0c96c commit 77611ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inputdevices/mouse.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (m *Mouse) disableTouchPad() {
return
}

if !m.DisableTpad.Get() && touchPad.TPadEnable.Get() {
if !m.DisableTpad.Get() && !touchPad.TPadEnable.Get() {
touchPad.enable(true)
return
}
Expand Down

0 comments on commit 77611ab

Please sign in to comment.