From 349f047032ccb783a2345b1c8ae63e2e2e7f3786 Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Fri, 23 Apr 1999 06:55:53 +0000 Subject: Keypad should produce correct symbols on Brazilian (and any other) keyboard when NumLock is on. Also added some explanatory comments to the source code. Some pointers were not being turned off when widgets were deleted, this caused flwm to crash. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@553 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/Fl.cxx') diff --git a/src/Fl.cxx b/src/Fl.cxx index df51ed702..6477fc92a 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl.cxx,v 1.24.2.4 1999/04/17 01:02:28 bill Exp $" +// "$Id: Fl.cxx,v 1.24.2.5 1999/04/23 06:55:52 bill Exp $" // // Main event handling code for the Fast Light Tool Kit (FLTK). // @@ -407,6 +407,8 @@ void fl_throw_focus(Fl_Widget *o) { #endif if (o->contains(Fl::belowmouse())) Fl::belowmouse_ = 0; if (o->contains(Fl::focus())) Fl::focus_ = 0; + if (o == fl_xfocus) fl_xfocus = 0; + if (o == fl_xmousewin) fl_xmousewin = 0; fl_fix_focus(); } @@ -696,5 +698,5 @@ int fl_old_shortcut(const char* s) { } // -// End of "$Id: Fl.cxx,v 1.24.2.4 1999/04/17 01:02:28 bill Exp $". +// End of "$Id: Fl.cxx,v 1.24.2.5 1999/04/23 06:55:52 bill Exp $". // -- cgit v1.2.3