diff options
| author | Manolo Gouy <Manolo> | 2015-02-09 12:56:06 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2015-02-09 12:56:06 +0000 |
| commit | 522fc17d31171650b53d9c676bdc67dd1a4b70ee (patch) | |
| tree | ab10671c2cd201a5ddf09e6fb0e8ff8dd8797b78 | |
| parent | d88bf15117fe118b4229e4843c502de464f998ac (diff) | |
Mac OS: correct window redraws after a window was created in iconized form.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10564 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | src/Fl_cocoa.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 8a53d2c15..1aff731a2 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -1337,6 +1337,7 @@ static FLWindowDelegate *flwindowdelegate_instance = nil; Fl_Window *window = [nsw getFl_Window]; Fl::handle(FL_SHOW, window); update_e_xy_and_e_xy_root(nsw); + Fl_X::i(window)->wait_for_expose = 0; // necessary when window was created miniaturized Fl::flush(); // process redraws set by FL_SHOW fl_unlock_function(); } @@ -2990,7 +2991,6 @@ void Fl_X::make(Fl_Window* w) w->set_visible(); if ( w->border() || (!w->modal() && !w->tooltip_window()) ) Fl::handle(FL_FOCUS, w); - if (!w->parent()) Fl::first_window(w); [cw setDelegate:[FLWindowDelegate singleInstance]]; if (fl_show_iconic) { fl_show_iconic = 0; @@ -3119,6 +3119,7 @@ void Fl_Window::show() { [i->xid makeKeyAndOrderFront:nil]; } } + else set_visible(); } } |
