~yarcat


#199 Receive click events of TypeClick immediately after gtx becomes enabled again a month ago

Ticket created by ~yarcat on ~eliasnaur/gio

Reproduction steps:

  1. Apply gtx in a disabled state on a button for some time (e.g. 2 seconds).
  2. While the button is disabled bring the cursor inside of the button.
  3. 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.