shpakovski/Popup — pull request #2 by movesmyers (2012-07-07 19:12:02+00:00)
Title: make sure the popover is opening on the screen that has the menubar

previously, if an external display was connected and the menu bar was moved to that screen, and then the display was removed (bringing the menu bar back to the one screen), the popover would fly off the screen. this fixes that by getting an array of screens and using index 0, which is defined in apple's docs as always being the screen with the menu bar.