diff --git a/src/apps/haikudepot/ui/FeaturedPackagesView.cpp b/src/apps/haikudepot/ui/FeaturedPackagesView.cpp index e502284bbe..e7978c58cd 100644 --- a/src/apps/haikudepot/ui/FeaturedPackagesView.cpp +++ b/src/apps/haikudepot/ui/FeaturedPackagesView.cpp @@ -111,7 +111,12 @@ public: virtual void MouseDown(BPoint where) { - if (Bounds().Contains(where)) { + BRect bounds = Bounds(); + BRect parentBounds = Parent()->Bounds(); + ConvertFromParent(&parentBounds); + bounds = bounds & parentBounds; + + if (bounds.Contains(where) && Window()->IsActive()) { BMessage message(MSG_PACKAGE_SELECTED); message.AddString("title", PackageTitle()); Window()->PostMessage(&message);