diff options
| author | Manolo Gouy <Manolo> | 2011-02-06 14:48:36 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2011-02-06 14:48:36 +0000 |
| commit | 75dea1bd8d732f15706f3473b52db24fdb7bed50 (patch) | |
| tree | 39bb3f01839b9a25afd3bb49cfeeff91ba7f97b7 | |
| parent | 84d0db13189731456c1104b34f141ea351b9f0dd (diff) | |
Fix for STR #2552: focus was lost from within a tab when back from visiting another window.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8392 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | src/Fl_Tabs.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Fl_Tabs.cxx b/src/Fl_Tabs.cxx index 2b49cf610..2526004e4 100644 --- a/src/Fl_Tabs.cxx +++ b/src/Fl_Tabs.cxx @@ -217,6 +217,10 @@ int Fl_Tabs::handle(int event) { Fl::event() == FL_FOCUS || Fl::event() == FL_UNFOCUS) { redraw_tabs(); +#ifndef __APPLE__ + // fix for STR #2552 + if (Fl::event() == FL_FOCUS) return Fl_Group::handle(event); +#endif if (Fl::event() == FL_FOCUS || Fl::event() == FL_UNFOCUS) return 0; else return 1; } else return Fl_Group::handle(event); |
