diff --git a/src/servers/app/ViewLayer.cpp b/src/servers/app/ViewLayer.cpp index ca6970863d..5737ba390d 100644 --- a/src/servers/app/ViewLayer.cpp +++ b/src/servers/app/ViewLayer.cpp @@ -229,17 +229,17 @@ ViewLayer::AddChild(ViewLayer* layer) if (fWindow) { layer->AttachedToWindow(fWindow); - if (fVisible && layer->IsVisible()) { - // trigger redraw - BRect clippedFrame = layer->Frame(); - ConvertToVisibleInTopView(&clippedFrame); - BRegion* dirty = fWindow->GetRegion(); - if (dirty) { - dirty->Set(clippedFrame); - fWindow->MarkContentDirty(*dirty); - fWindow->RecycleRegion(dirty); - } - } +// if (layer->IsVisible()) { +// // trigger redraw +// BRect clippedFrame = layer->Frame(); +// ConvertToVisibleInTopView(&clippedFrame); +// BRegion* dirty = fWindow->GetRegion(); +// if (dirty) { +// dirty->Set(clippedFrame); +// fWindow->MarkContentDirtyAsync(*dirty); +// fWindow->RecycleRegion(dirty); +// } +// } } } @@ -284,17 +284,17 @@ ViewLayer::RemoveChild(ViewLayer* layer) if (fWindow) { layer->DetachedFromWindow(); - if (fVisible && layer->IsVisible()) { - // trigger redraw - BRect clippedFrame = layer->Frame(); - ConvertToVisibleInTopView(&clippedFrame); - BRegion* dirty = fWindow->GetRegion(); - if (dirty) { - dirty->Set(clippedFrame); - fWindow->MarkContentDirty(*dirty); - fWindow->RecycleRegion(dirty); - } - } +// if (fVisible && layer->IsVisible()) { +// // trigger redraw +// BRect clippedFrame = layer->Frame(); +// ConvertToVisibleInTopView(&clippedFrame); +// BRegion* dirty = fWindow->GetRegion(); +// if (dirty) { +// dirty->Set(clippedFrame); +// fWindow->MarkContentDirtyAsync(*dirty); +// fWindow->RecycleRegion(dirty); +// } +// } } return true;