Switching to submenu of a popover can make submenu appear far from the current mouse pointer location
This is a follow-up to a bug report I filed for Tilix: https://github.com/gnunn1/tilix/issues/1683
Some applications use Popovers instead of context menus, complete with submenus, but this leads to two usability problems:
- When an item that activates a submenu is some way down in the list of items in the popover, the submenu popover will appear at the location of the original mouse click that activated the main popover, which is far from the location of the click that activated the submenu popover. This means more mouse movement than with a regular context menu.
- If the main popover is activated close to the bottom of the screen, it will appear above the pointer location if it is too big to fit below it. However, a submenu may be smaller, and if it is, it will appear below the original pointer location, meaning again a larger mouse movement is needed to reach the submenu's items.
I'm using Gtk+ 3.24.5 on Debian, on a laptop.