A first step toward multiple windows in #Lagrange: popup menus that live outside the main window.
On Mac/Windows it makes more sense to use native menus for this, but everywhere else a platform-agnostic method is needed, and this one is purely based on SDL-managed borderless windows.
Managed to get context menus working via NSMenu on macOS. It did need a minor tweak in SDL to make it realize the right mouse button has been released after the menu goes away.
skyjake's personal Mastodon instance