From 75dea1bd8d732f15706f3473b52db24fdb7bed50 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sun, 6 Feb 2011 14:48:36 +0000 Subject: [PATCH] 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 --- src/Fl_Tabs.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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);