Skip to content

Commit

Permalink
Merge pull request #5 from Geras1mleo/patch-1
Browse files Browse the repository at this point in the history
Update asus_accel_driver.py: proper Device initialization
  • Loading branch information
ldrahnik committed Jan 27, 2024
2 parents 2b3c4ab + 9821eb8 commit fe99298
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asus_accel_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def isEventInput(event):
if isEventInput(event_to_enable):
dev.enable(event_to_enable.code)
for event_to_enable in layout.tablet_mode_events:
if isEventKey(event_to_enable):
if isEventInput(event_to_enable):
dev.enable(event_to_enable.code)

# Sleep for a bit so udev, libinput, Xorg, Wayland, ... all have had
Expand Down Expand Up @@ -183,4 +183,4 @@ def read_accel_file(name):
flip(tablet_mode)
log.info("Flip to laptop mode")

sleep(0.5)
sleep(0.5)

0 comments on commit fe99298

Please sign in to comment.