Sometimes I have seen crashes in BWindow::determine_target(), and this could very well fix it.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13060 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2005-06-11 14:28:54 +00:00
parent 95c58faa2d
commit 56efd1ace8

View File

@ -2207,8 +2207,7 @@ BWindow::task_looper()
}
if (!handler) {
handler = determine_target(msg, handler,
_use_preferred_target_(fLastMessage));
handler = determine_target(fLastMessage, handler, false);
if (!handler)
handler = this;
}