View | Details | Raw Unified | Return to bug 6116
Collapse All | Expand All

(-)src/Fl_cocoa.mm (+10 lines)
Lines 3110-3115 Link Here
3110
    [cw makeKeyAndOrderFront:nil];
3110
    [cw makeKeyAndOrderFront:nil];
3111
  }
3111
  }
3112
  
3112
  
3113
  if (!w->parent()) {
3114
    // this may be useful for menu/tooltip windows where no windowDidMove notification is received
3115
    crect = [[cw contentView] frame];
3116
    w->w(int(crect.size.width));
3117
    w->h(int(crect.size.height));
3118
    crect = [cw frame];
3119
    w->x(int(crect.origin.x));
3120
    w->y(int(main_screen_height - (crect.origin.y + w->h())));
3121
  }
3122
3113
    int old_event = Fl::e_number;
3123
    int old_event = Fl::e_number;
3114
    w->handle(Fl::e_number = FL_SHOW);
3124
    w->handle(Fl::e_number = FL_SHOW);
3115
    Fl::e_number = old_event;
3125
    Fl::e_number = old_event;

Return to bug 6116