ColumnView header menu appears on mouse-up
Steps to reproduce
- Run gtk4-demo
- Double-click the Lists -> Settings demo
- Right-click in the header of the table on the right side
Current behavior
The context menu appears when the mouse button is released.
Expected outcome
The context menu should respond to the standard gesture for context menus: when the mouse button is pressed.
Version information
I'm using GTK 4.8.3 in Debian "bookworm/sid" with X11 on amdgpu.
Additional information
The relevant code looks like it's around https://gitlab.gnome.org/GNOME/gtk/-/blob/main/gtk/gtkcolumnviewtitle.c#L225 though I'm not enough of an expert on GTK gestures to provide a fix.
This is not only faster and easier to use (don't have to click twice), without sacrificing any functionality for people who want to click, but it's how every other context menu works in GTK. I looked in both gtk4-demo and other real GTK applications on my system and could not find any other case where a context menu appears on mouse-up. Other platforms generally work this way, too.
The entire GtkColumnViewTitle class is a private interface, so there's no way that I see for an application to work around this.