diff --git a/src/apps/deskbar/BarView.cpp b/src/apps/deskbar/BarView.cpp index 15adc7e090..f113e6a566 100644 --- a/src/apps/deskbar/BarView.cpp +++ b/src/apps/deskbar/BarView.cpp @@ -86,6 +86,11 @@ TBarView::TBarView(BRect frame, bool vertical, bool left, bool top, fMaxRecentApps(kDefaultRecentAppCount), fLastDragItem(NULL) { + fReplicantTray = new TReplicantTray(this, fVertical); + fDragRegion = new TDragRegion(this, fReplicantTray); + fDragRegion->AddChild(fReplicantTray); + if (fTrayLocation != 0) + AddChild(fDragRegion); } @@ -104,12 +109,6 @@ TBarView::AttachedToWindow() SetViewColor(ui_color(B_MENU_BACKGROUND_COLOR)); SetFont(be_plain_font); - fReplicantTray = new TReplicantTray(this, fVertical); - fDragRegion = new TDragRegion(this, fReplicantTray); - fDragRegion->AddChild(fReplicantTray); - if (fTrayLocation != 0) - AddChild(fDragRegion); - UpdateAutoRaise(); UpdatePlacement(); @@ -576,6 +575,7 @@ TBarView::ShowingClock() const // #pragma mark - Drag and Drop + void TBarView::CacheDragData(const BMessage* incoming) {