GtkButton: Doesn't get released correctly when using GestureLongPress
The GtkButton isn't released correctly when the gesture is claimed with gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_CLAIMED)
in the event handler.
Steps to reproduce
- Run the attached example
- Long press on the button
- Move the mouse around
Example reproducer
> gcc -Wall -g main.c `pkg-config --cflags gtk+-3.0` `pkg-config --libs gtk+-3.0`
Current behavior
The button isn't fully released. Hovering the button shows the button as pressed. When the mouse cursor isn't hovering the button then it looks like a normal not pressed button.
Expected outcome
I would expect that the button is fully released after after a Long press gesture.
Version information
GTK Version: 3.24.5 Distro: PureOS (Debian based)
Additional information
CC @carlosg
Edited by Julian Sparber