{"object_kind":"push","event_name":"push","before":"df78733dc745330dc5a21fc862b5727b096586de","after":"4c5f91aa34b4317141d44dd311ea2e50a3d16354","ref":"refs/heads/main","ref_protected":false,"checkout_sha":"4c5f91aa34b4317141d44dd311ea2e50a3d16354","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=1794960000","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":"a71aec2109f2eb3cb6a2f7c7c7f572e14f5da3bb","message":"fallback: reset middle button emulation when returning to neutral state\n\nMiddle button emulation holds back the press of the left or right\nbutton for 50ms. If the device is suspended within that time the timer\nstill fires and the press is posted by a suspended device. Its release\nnever arrives: it is either lost while the device is suspended or\ndiscarded because the button is no longer down in hw_key_mask. The\nbutton stays logically down and further clicks of it send no events.\n\nReturn the state machine to idle when the device returns to its neutral\nstate. That cancels the timer and drops a press that is still held\nback. Buttons that were already posted, the emulated middle button\nincluded, are released by release_pressed_keys() as before.\n\nAssisted-by: AI\nSigned-off-by: Owen Kent \nPart-of: \n","title":"fallback: reset middle button emulation when returning to neutral state","timestamp":"2026-11-17T17:19:35-07:00","url":"https://gitlab.freedesktop.org/libinput/libinput/-/commit/a71aec2109f2eb3cb6a2f7c7c7f572e14f5da3bb","author":{"name":"Owen Kent","email":"owenpkent@gmail.com"},"added":[],"modified":["src/evdev-fallback.c","src/evdev-middle-button.c","src/evdev.h","test/test-device.c"],"removed":[]},{"id":"4c5f91aa34b4317141d44dd311ea2e50a3d16354","message":"fallback: reset button scrolling on suspend and scroll config changes\n\nThe press of the on-button scroll button is not posted while the button\nis held, so release_pressed_keys() has nothing to release for it when a\ndevice returns to its neutral state. The button scroll state and the\nscroll button lock state stay as they were and the release never\narrives: it is lost while the device is suspended, or discarded because\nthe button is no longer down in hw_key_mask.\n\nAfter the resume, pointer motion is discarded or sent as scroll events\nuntil the scroll button is clicked again, and a scroll in progress is\nnever terminated. If the scroll button lock is enabled and the button\nwas down when the device was suspended, the next press of it trips an\nassert in evdev_button_scroll_button(). Where debouncing is active and\nthe button was released while the device was suspended, the debounce\nplugin swallows the first press after the resume and it is the one\nafter that.\n\nThe same state is left behind if the scroll button lock is engaged and\nthe lock, the scroll method or the scroll button is changed: no button\nis down so the change applies immediately, but motion keeps scrolling,\nor scrolls again once on-button scrolling is switched back on.\n\nReset button scrolling in both places: cancel the timer, terminate a\nscroll in progress and return the state and an enabled lock to idle.\nAn engaged scroll button lock is thus released when the device is\nsuspended or the scroll configuration changes, and a device that is\nremoved while scrolling now gets its scroll stop too.\n\nAssisted-by: AI\nSigned-off-by: Owen Kent \nPart-of: \n","title":"fallback: reset button scrolling on suspend and scroll config changes","timestamp":"2026-11-17T17:22:12-07:00","url":"https://gitlab.freedesktop.org/libinput/libinput/-/commit/4c5f91aa34b4317141d44dd311ea2e50a3d16354","author":{"name":"Owen Kent","email":"owenpkent@gmail.com"},"added":[],"modified":["src/evdev-fallback.c","src/evdev.c","src/evdev.h","test/test-pointer.c"],"removed":[]}],"total_commits_count":2,"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}}