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
This commit is contained in:
parent
84d0db1318
commit
75dea1bd8d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user