Hello world,
still migrating my app from GTK3 to GTK4, I have an issue with the menus (Popover, PopoverMeunbar) in the new GTK4 API, and that is that I do not find a way to loose the focus (and exit the menu) by clicking outside the menu, in order to exit the menu it is mandatory to either:
- Press ‘Esc’
- Click on the top element of the menu to close it
- Click on any other part of the Gtk window the menu belong to
And as long as I did not do one theses actions, the mouse focus will remains stuck in the menu, no way to even focus on another GTK window of the same program, or, and that is more the issue here, any other program running on the computer.
I must confess this was slightly annoying at first, but I got used to it until I needed to use debugging tools for menus action, hence the GDB in the title of my post … the result is that debugging menu action is, for me at that time, impossible because the focus remains locked on the menu and the debugger remains inaccessible … any way around this ?
Thanks in advance for your ideas
S.