Filter out some fields in the message that we may set ourselves.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15078 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-11-22 20:34:02 +00:00
parent bbbe5a3329
commit b361534e3c

View File

@ -205,10 +205,17 @@ CardView::ForwardMessage(BMessage* message)
if (message == NULL)
return;
size_t length = message->FlattenedSize();
// remove some fields that potentially mess up our own message processing
BMessage copy = *message;
copy.RemoveName("screen_where");
copy.RemoveName("be:transit");
copy.RemoveName("be:view_where");
copy.RemoveName("be:cursor_needed");
size_t length = copy.FlattenedSize();
char stream[length];
if (message->Flatten(stream, length) == B_OK)
if (copy.Flatten(stream, length) == B_OK)
write_port(fInputPort, 0, stream, length);
}