summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Tabs.cxx2
-rw-r--r--src/Fl_mac.cxx3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/Fl_Tabs.cxx b/src/Fl_Tabs.cxx
index 1669ed947..59c06b4d5 100644
--- a/src/Fl_Tabs.cxx
+++ b/src/Fl_Tabs.cxx
@@ -187,6 +187,8 @@ int Fl_Tabs::handle(int event) {
default:
break;
}
+ case FL_SHOW:
+ value(); // update visibilities and fall through
default:
return Fl_Group::handle(event);
diff --git a/src/Fl_mac.cxx b/src/Fl_mac.cxx
index 2ba70c91b..2645f63b6 100644
--- a/src/Fl_mac.cxx
+++ b/src/Fl_mac.cxx
@@ -1916,8 +1916,9 @@ void Fl_Window::make_current()
// \todo for performance reasons: we don't have to create this unless the child windows moved
for ( Fl_X *cx = i->xidChildren; cx; cx = cx->xidNext )
{
- Fl_Region r = NewRgn();
Fl_Window *cw = cx->w;
+ if (!cw->visible_r()) continue;
+ Fl_Region r = NewRgn();
SetRectRgn( r, cw->x() - xp, cw->y() - yp,
cw->x() + cw->w() - xp, cw->y() + cw->h() - yp );
DiffRgn( fl_window_region, r, fl_window_region );