B11: [Issue #11] Fix popup menu not reacting when out of the main window.