From 42f7ef8ea908884a7749082c14511879ebe2e9fd Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 30 Dec 2005 11:11:54 +0000 Subject: 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 --- src/Fl_mac.cxx | 8 ++++++-- 1 file 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; } -- cgit v1.2.3