diff --git a/src/servers/notification/NotificationWindow.cpp b/src/servers/notification/NotificationWindow.cpp index 8a280849e9..690ef934a6 100644 --- a/src/servers/notification/NotificationWindow.cpp +++ b/src/servers/notification/NotificationWindow.cpp @@ -190,7 +190,6 @@ NotificationWindow::MessageReceived(BMessage* message) group->AddInfo(view); _ResizeAll(); - SetPosition(); reply.AddInt32("error", B_OK); } else @@ -215,7 +214,6 @@ NotificationWindow::MessageReceived(BMessage* message) fViews.erase(it); _ResizeAll(); - SetPosition(); break; } default: @@ -294,12 +292,6 @@ NotificationWindow::Width() void NotificationWindow::_ResizeAll() { - if (fAppViews.empty()) { - if (!IsHidden()) - Hide(); - return; - } - appview_t::iterator aIt; bool shouldHide = true; @@ -317,9 +309,6 @@ NotificationWindow::_ResizeAll() return; } - if (IsHidden()) - Show(); - for (aIt = fAppViews.begin(); aIt != fAppViews.end(); aIt++) { AppGroupView* view = aIt->second; @@ -331,6 +320,11 @@ NotificationWindow::_ResizeAll() view->Show(); } } + + SetPosition(); + + if (IsHidden()) + Show(); } @@ -467,13 +461,6 @@ NotificationWindow::_SaveAppFilters() } -void NotificationWindow::Show() -{ - BWindow::Show(); - SetPosition(); -} - - void NotificationWindow::_LoadGeneralSettings(bool startMonitor) { diff --git a/src/servers/notification/NotificationWindow.h b/src/servers/notification/NotificationWindow.h index 4556417d7f..41fc457216 100644 --- a/src/servers/notification/NotificationWindow.h +++ b/src/servers/notification/NotificationWindow.h @@ -48,8 +48,6 @@ public: virtual BHandler* ResolveSpecifier(BMessage*, int32, BMessage*, int32, const char*); - void Show(); - icon_size IconSize(); int32 Timeout(); float Width();