macOS build not responding to taps and clicks
gtk4-demo doesn't react to clicks and taps (any trackpad action) on macOS.
Steps to reproduce
-
jhbuild buildone gtk
# macos build with native backend (quartz) gtk4-demo
- Click on titlebar and left sidebar
Current behavior
Nothing happens when clicking or tapping on titlebar and sidebar items.
Sometimes main app sections responds, but it is also affected by the bug.
The X11 build (with XQuartz) doesn't seem to be affected.
Expected outcome
Minimize, maximize, close, and hamburger menu buttons expected to work in titlebar. Sidebar list expected to be clickable. Same with main section tabs
Version information
master branch, 65017a00
Additional information
Warnings are printed in the console after application loses focus:
Screen recording (warning, audio): https://www.twitch.tv/bedeleiz/clip/PreciousYawningWhaleSmoocherZ-qvtiiNiBPu67bFfD
(gtk4-demo:84385): Gtk-WARNING **: 13:28:39.897: Broken accounting of active state for widget 0x7fcddd03a320(GtkApplicationWindow)
Backtrace with breakpoint at gtk/gtkwidget:12950 (the warning above):
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 3.1
* frame #0: 0x00000001009c69fe libgtk-4.1.dylib`gtk_widget_set_active_state(widget=0x0000000103838150, active=0) at gtkwidget.c:12950
:11 [opt]
frame #1: 0x00000001008b91f1 libgtk-4.1.dylib`set_widget_active_state(target=<unavailable>, release=1) at gtkmain.c:0:3 [opt]
frame #2: 0x00000001008b8403 libgtk-4.1.dylib`handle_pointing_event(event=0x000000010486db00) at gtkmain.c:1449:11 [opt]
frame #3: 0x00000001008b7a1a libgtk-4.1.dylib`gtk_main_do_event(event=0x000000010486db00) at gtkmain.c:1540:23 [opt]
frame #4: 0x00000001009d44ec libgtk-4.1.dylib`surface_event(surface=<unavailable>, event=<unavailable>, widget=<unavailable>) at gt
kwindow.c:4737:3 [opt]
frame #5: 0x0000000100aa8b71 libgtk-4.1.dylib`_gdk_marshal_BOOLEAN__POINTERv(closure=0x000000010bfd1390, return_value=0x00007ffeefb
ff128, instance=0x000000010386f1a0, args=0x00007ffeefbff430, marshal_data=<unavailable>, n_params=1, param_types=0x00000001029b39c0) at
gdkmarshalers.c:302:14 [opt]
frame #6: 0x0000000100ad036a libgtk-4.1.dylib`gdk_surface_event_marshallerv(closure=0x000000010bfd1390, return_value=0x00007ffeefbf
f128, instance=0x000000010386f1a0, args=0x00007ffeefbff430, marshal_data=0x0000000000000000, n_params=1, param_types=0x00000001029b39c0
) at gdksurface.c:451:3 [opt]
frame #7: 0x00000001012c39a4 libgobject-2.0.0.dylib`_g_closure_invoke_va + 580
frame #8: 0x00000001012e61c7 libgobject-2.0.0.dylib`g_signal_emit_valist + 1831
frame #9: 0x00000001012e79bf libgobject-2.0.0.dylib`g_signal_emit + 383
frame #10: 0x0000000100acf69e libgtk-4.1.dylib`gdk_surface_handle_event(event=0x000000010486db00) at gdksurface.c:2950:3 [opt]
frame #11: 0x0000000100abb296 libgtk-4.1.dylib`_gdk_event_emit(event=0x000000010486db00) at gdkevents.c:490:3 [opt]
frame #12: 0x0000000100ade60f libgtk-4.1.dylib`gdk_macos_event_source_dispatch(source=<unavailable>, callback=<unavailable>, user_d
ata=<unavailable>) at gdkmacoseventsource.c:713:7 [opt]
frame #13: 0x000000010118716b libglib-2.0.0.dylib`g_main_dispatch + 427
frame #14: 0x0000000101186fb0 libglib-2.0.0.dylib`g_main_context_dispatch + 48
frame #15: 0x00000001011874d4 libglib-2.0.0.dylib`g_main_context_iterate + 452
frame #16: 0x0000000101187553 libglib-2.0.0.dylib`g_main_context_iteration + 83
frame #17: 0x0000000101415fc7 libgio-2.0.0.dylib`g_application_run + 1015
frame #18: 0x0000000100035b9a gtk4-demo`main(argc=1, argv=0x00007ffeefbff730) at main.c:1114:3 [opt]
frame #19: 0x00007fff2045c621 libdyld.dylib`start + 1```