diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2005-12-30 11:11:54 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2005-12-30 11:11:54 +0000 |
| commit | 42f7ef8ea908884a7749082c14511879ebe2e9fd (patch) | |
| tree | 421d5915613a90745add44910956641e8ac913ce | |
| parent | 76e967889f182d41a64dddbabd668978369358a5 (diff) | |
STR #1082, part 1:
Borderless windows now do not vanish anymore when the application becomes inactive, unless they are menus, or tooltips.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4725 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | src/Fl_mac.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Fl_mac.cxx b/src/Fl_mac.cxx index 7fbc295c6..2367ea895 100644 --- a/src/Fl_mac.cxx +++ b/src/Fl_mac.cxx @@ -1686,8 +1686,12 @@ void Fl_X::make(Fl_Window* w) if (!fake_X_wm(w, xwm, ywm, bt, bx, by)) { // menu windows and tooltips - winclass = kHelpWindowClass; - winattr = 0; + if (w->modal()||w->override()) { + winclass = kHelpWindowClass; + winattr = 0; + } else { + winattr = kWindowNoTitleBarAttribute; + } } else if (w->modal()) { winclass = kMovableModalWindowClass; } |
