Index: src/Fl_cocoa.mm =================================================================== --- src/Fl_cocoa.mm (revision 12242) +++ src/Fl_cocoa.mm (working copy) @@ -3110,6 +3110,16 @@ [cw makeKeyAndOrderFront:nil]; } + if (!w->parent()) { + // this may be useful for menu/tooltip windows where no windowDidMove notification is received + crect = [[cw contentView] frame]; + w->w(int(crect.size.width)); + w->h(int(crect.size.height)); + crect = [cw frame]; + w->x(int(crect.origin.x)); + w->y(int(main_screen_height - (crect.origin.y + w->h()))); + } + int old_event = Fl::e_number; w->handle(Fl::e_number = FL_SHOW); Fl::e_number = old_event;