From ecd524fdc7384c48e7cdde001dc479a5d795ee88 Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Sat, 23 Oct 1999 05:59:27 +0000 Subject: Calling deactivate() from a non-displayed widget could cause an infinite loop. I didn't really fix this, but I removed deactivate() from constructors and replaced with set_flag(INACTIVE). The loop would happen if a widget responded to FL_MOVE by calling draw_overlay or otherwise creating an overlay, which is a pretty rare event. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@792 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Overlay_Window.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Fl_Overlay_Window.cxx') diff --git a/src/Fl_Overlay_Window.cxx b/src/Fl_Overlay_Window.cxx index e790a6ecc..d877e25ac 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 1999/01/07 19:17:24 mike Exp $" +// "$Id: Fl_Overlay_Window.cxx,v 1.7.2.1 1999/10/23 05:59:27 bill Exp $" // // Overlay window code for the Fast Light Tool Kit (FLTK). // @@ -84,7 +84,7 @@ class _Fl_Overlay : public Fl_Window { void show(); public: _Fl_Overlay(int x, int y, int w, int h) : - Fl_Window(x,y,w,h) {deactivate();} + Fl_Window(x,y,w,h) {set_flag(INACTIVE);} }; int Fl_Overlay_Window::can_do_overlay() { @@ -140,5 +140,5 @@ void Fl_Overlay_Window::redraw_overlay() { #endif // -// End of "$Id: Fl_Overlay_Window.cxx,v 1.7 1999/01/07 19:17:24 mike Exp $". +// End of "$Id: Fl_Overlay_Window.cxx,v 1.7.2.1 1999/10/23 05:59:27 bill Exp $". // -- cgit v1.2.3