{"object_kind":"push","event_name":"push","before":"1a1208567175d83a73505aaae804403972f4d6ae","after":"db74a5396bc1defc0fa8140a2e417dfd35eea782","ref":"refs/heads/main","ref_protected":false,"checkout_sha":"db74a5396bc1defc0fa8140a2e417dfd35eea782","message":null,"user_id":9716,"user_name":"Marge Bot","user_username":"marge-bot","user_email":"[REDACTED]","user_avatar":"https://gitlab.freedesktop.org/uploads/-/system/user/avatar/9716/marge.png?v=1794700802","project_id":147,"project":{"id":147,"name":"libinput","description":"Input device management and event handling library","web_url":"https://gitlab.freedesktop.org/libinput/libinput","avatar_url":null,"git_ssh_url":"git@ssh.gitlab.freedesktop.org:libinput/libinput.git","git_http_url":"https://gitlab.freedesktop.org/libinput/libinput.git","namespace":"libinput","visibility_level":20,"path_with_namespace":"libinput/libinput","default_branch":"main","ci_config_path":"","homepage":"https://gitlab.freedesktop.org/libinput/libinput","url":"git@ssh.gitlab.freedesktop.org:libinput/libinput.git","ssh_url":"git@ssh.gitlab.freedesktop.org:libinput/libinput.git","http_url":"https://gitlab.freedesktop.org/libinput/libinput.git"},"commits":[{"id":"db74a5396bc1defc0fa8140a2e417dfd35eea782","message":"fallback: clear last_hw_key_mask when returning to neutral state\n\nfallback_return_to_neutral_state() clears hw_key_mask twice and never\nclears last_hw_key_mask. A button that is down when the device is\nsuspended thus stays down in last_hw_key_mask while hw_key_mask and the\nkey count say it is up, and the next EV_KEY frame after resuming sees a\nchange that isn't there.\n\nIf the button was released while the device was disabled, the next\npress of that button matches the stale bit and is dropped, and the\nrelease that follows triggers a \"releasing key with count 0\" libinput\nbug and an unpaired release event. If the button is still down when the\ndevice is re-enabled, its kernel release is correctly ignored but the\nnext press of any other button sends a spurious release for the\noriginal button, again with the libinput bug message.\n\nWhere button debouncing is active, the debounce plugin also missed the\nrelease in the first case and swallows the first press after\nre-enabling on its own, so there it is the second click that is lost.\n\nThis affects anything that suspends a fallback device, e.g. disabling\nsend events or a tablet mode switch suspending a trackpoint. Keys are\nnot affected since they are notified directly, not from the mask diff.\n\nFixes: db3b6fe5f7f8 (\"fallback: change to handle the state at EV_SYN time\")\nSigned-off-by: Owen Kent \nPart-of: \n","title":"fallback: clear last_hw_key_mask when returning to neutral state","timestamp":"2026-11-15T23:30:27+00:00","url":"https://gitlab.freedesktop.org/libinput/libinput/-/commit/db74a5396bc1defc0fa8140a2e417dfd35eea782","author":{"name":"Owen Kent","email":"owenpkent@gmail.com"},"added":[],"modified":["src/evdev-fallback.c","test/test-device.c"],"removed":[]}],"total_commits_count":1,"push_options":{},"repository":{"name":"libinput","url":"git@ssh.gitlab.freedesktop.org:libinput/libinput.git","description":"Input device management and event handling library","homepage":"https://gitlab.freedesktop.org/libinput/libinput","git_http_url":"https://gitlab.freedesktop.org/libinput/libinput.git","git_ssh_url":"git@ssh.gitlab.freedesktop.org:libinput/libinput.git","visibility_level":20}}