Background: avoid 100% CPU usage

* There was an infinite exchange of messages between
  the main window and the BackgroundView.
* Fixes #11996.
This commit is contained in:
Janus
2015-06-04 18:31:59 +02:00
parent b092f872b3
commit 1ad18684bb
+1 -8
View File
@@ -30,7 +30,6 @@ public:
BackgroundsWindow();
void RefsReceived(BMessage* message);
void MessageReceived(BMessage* message);
protected:
virtual bool QuitRequested();
@@ -70,6 +69,7 @@ BackgroundsApplication::MessageReceived(BMessage* message)
{
const void *data;
ssize_t size;
if (message->WasDropped() && message->FindData("RGBColor", B_RGB_COLOR_TYPE,
&data, &size) == B_OK) {
// This is the desktop telling us that it was changed by a color drop
@@ -125,13 +125,6 @@ BackgroundsWindow::RefsReceived(BMessage* message)
}
void
BackgroundsWindow::MessageReceived(BMessage* message)
{
BMessenger(fBackgroundsView).SendMessage(message);
}
bool
BackgroundsWindow::QuitRequested()
{