Skip to content

Commit

Permalink
modal() window fix from Bill.
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/trunk@189 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
michaelrsweet committed Jan 7, 1999
1 parent 651b2af commit 123f28a
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions src/Fl_win32.cxx
@@ -1,5 +1,5 @@
//
// "$Id: Fl_win32.cxx,v 1.21 1999/01/06 21:20:01 mike Exp $"
// "$Id: Fl_win32.cxx,v 1.22 1999/01/07 16:43:04 mike Exp $"
//
// WIN32-specific code for the Fast Light Tool Kit (FLTK).
//
Expand Down Expand Up @@ -665,16 +665,11 @@ Fl_X* Fl_X::make(Fl_Window* w) {
}

parent = 0;
if (w->non_modal() && !fl_disable_transient_for) {
if (w->non_modal() && Fl_X::first && !fl_disable_transient_for) {
// find some other window to be "transient for":
for (Fl_X* y = Fl_X::first; y; y = y->next) {
Fl_Window* w = y->w;
while (w->parent()) w = w->window();
if (!w->non_modal()) {
parent = fl_xid(w);
break;
}
}
Fl_Window* w = Fl_X::first->w;
while (w->parent()) w = w->window();
parent = fl_xid(w);
}
}

Expand Down Expand Up @@ -875,5 +870,5 @@ void Fl_Window::make_current() {
}

//
// End of "$Id: Fl_win32.cxx,v 1.21 1999/01/06 21:20:01 mike Exp $".
// End of "$Id: Fl_win32.cxx,v 1.22 1999/01/07 16:43:04 mike Exp $".
//

0 comments on commit 123f28a

Please sign in to comment.