simtr/The-Powder-Toy — pull request #189 by mniip (2013-11-10 08:33:01+00:00)
Title: ContextMenu

Fixes #188.
if the menu goes beyond right edge, flip it so that the cursor will be at its top-right edge instead of top-left. If it still doesn't fit (goes beyond left edge [possible with huge menus, i'm guessing?]), just give it an X of 0. Same goes for Y.