* applied the logic from BWindow::task_looper() to BLooper as well (messages to

invalid target handlers are dropped).
* B_PREFERRED messages now go to the looper if there is no other preferred handler.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15088 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-11-23 16:25:30 +00:00
parent 6450b76dd4
commit 43ca776563
2 changed files with 38 additions and 82 deletions
+2
View File
@@ -2243,6 +2243,8 @@ BWindow::task_looper()
if (usePreferred) {
handler = PreferredHandler();
if (handler == NULL)
handler = this;
} else {
gDefaultTokens.GetToken(messagePrivate.GetTarget(),
B_HANDLER_TOKEN, (void **)&handler);