diff options
| author | Bill Spitzak <spitzak@gmail.com> | 1999-02-26 07:07:56 +0000 |
|---|---|---|
| committer | Bill Spitzak <spitzak@gmail.com> | 1999-02-26 07:07:56 +0000 |
| commit | f19b6ee3e4d30e9c6b121625a68b8fd215583f08 (patch) | |
| tree | 02dd05ec032c161eea225df90372f56cd729e1fe /src/Fl.cxx | |
| parent | bdbc0b8b2e729ef61d08b732e6eba9da6edce28c (diff) | |
Fixed editor demo redraw bug (actually same fix as somebody else made).
Highlight is cleared if any other widget makes an X selection.
git-svn-id: file:///fltk/svn/fltk/trunk@345 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl.cxx')
| -rw-r--r-- | src/Fl.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx index 766f0bbc4..f45038c28 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl.cxx,v 1.19 1999/02/22 21:19:19 mike Exp $" +// "$Id: Fl.cxx,v 1.20 1999/02/26 07:07:55 bill Exp $" // // Main event handling code for the Fast Light Tool Kit (FLTK). // @@ -577,6 +577,8 @@ int Fl_Window::handle(int event) { void Fl::selection_owner(Fl_Widget *owner) { if (selection_owner_ && owner != selection_owner_) selection_owner_->handle(FL_SELECTIONCLEAR); + if (focus_ && owner != focus_ && focus_ != selection_owner_) + focus_->handle(FL_SELECTIONCLEAR); // clear non-X-selection highlight selection_owner_ = owner; } @@ -679,5 +681,5 @@ int fl_old_shortcut(const char* s) { } // -// End of "$Id: Fl.cxx,v 1.19 1999/02/22 21:19:19 mike Exp $". +// End of "$Id: Fl.cxx,v 1.20 1999/02/26 07:07:55 bill Exp $". // |
