diff options
| author | Bill Spitzak <spitzak@gmail.com> | 2001-05-05 23:39:01 +0000 |
|---|---|---|
| committer | Bill Spitzak <spitzak@gmail.com> | 2001-05-05 23:39:01 +0000 |
| commit | 38c947bd093c0edb1eb746911150574fa4a0fb2f (patch) | |
| tree | c922543815eeb098268eec8d1b418530950b80dc /src/Fl_Overlay_Window.cxx | |
| parent | 325c0838f4e816f1129a29949b9054f32dba8fe0 (diff) | |
Compiling with -DBOXX_BUGS will work around some problems with the newest
X drivers that BoXX delivers, the problems all affect use of Overlays for
normal X drawing and OpenGL drawing. Normal compilation is unchanged.
The file chooser buttons use user_data() rather than the label to decide
what to do, allowing the label to be somewhat cleaner.
Selection color on X changed to blue, to match what happens on Windows now.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1452 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Overlay_Window.cxx')
| -rw-r--r-- | src/Fl_Overlay_Window.cxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/Fl_Overlay_Window.cxx b/src/Fl_Overlay_Window.cxx index 57f029a1f..0d31fb5dc 100644 --- a/src/Fl_Overlay_Window.cxx +++ b/src/Fl_Overlay_Window.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Overlay_Window.cxx,v 1.7.2.5 2001/01/22 15:13:40 easysw Exp $" +// "$Id: Fl_Overlay_Window.cxx,v 1.7.2.6 2001/05/05 23:39:01 spitzak Exp $" // // Overlay window code for the Fast Light Tool Kit (FLTK). // @@ -43,6 +43,15 @@ void Fl_Overlay_Window::hide() { } void Fl_Overlay_Window::flush() { +#ifdef BOXX_BUGS + if (overlay_ && overlay_ != this && overlay_->shown()) { + // all drawing to windows hidden by overlay windows is ignored, fix this + XUnmapWindow(fl_display, fl_xid(overlay_)); + Fl_Double_Window::flush(0); + XMapWindow(fl_display, fl_xid(overlay_)); + return; + } +#endif int erase_overlay = (damage()&FL_DAMAGE_OVERLAY); clear_damage(damage()&~FL_DAMAGE_OVERLAY); Fl_Double_Window::flush(erase_overlay); @@ -140,5 +149,5 @@ void Fl_Overlay_Window::redraw_overlay() { #endif // -// End of "$Id: Fl_Overlay_Window.cxx,v 1.7.2.5 2001/01/22 15:13:40 easysw Exp $". +// End of "$Id: Fl_Overlay_Window.cxx,v 1.7.2.6 2001/05/05 23:39:01 spitzak Exp $". // |
