Ticket created by ~yarcat on ~eliasnaur/gio
Reproduction steps:
- Apply gtx in a disabled state on a button for some time (e.g. 2 seconds).
- While the button is disabled bring the cursor inside of the button.
- After the button is active again, clicks wouldn't be received until the button is re-hovered.
A sample program that helps to reproduce these steps: https://github.com/yarcat/playground/blob/master/gio-gtx-disabled/hello.go
The culprit is here https://git.sr.ht/~eliasnaur/gio/tree/main/item/gesture/gesture.go#L162 The thing is that while the button is disabled,
Enter
event wouldn't be received. And it breaks this state-machine.