If you open the menu and click outside of any other xpra window (set_focus(0)) then the menu remains on top of all other windows.
This project implements a hierarchical menu system where users can navigate through nested menus, demonstrating key Object ...