Small fix for _StealMouseMessage(): only if "feed focus" is "false", the message
can't be used. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20737 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
19ebf74dc6
commit
f5faf48a9f
@ -3052,7 +3052,7 @@ BWindow::_StealMouseMessage(BMessage* message, bool& deleteMessage)
|
|||||||
// just prevent it from being sent to the preferred handler
|
// just prevent it from being sent to the preferred handler
|
||||||
// again (if it should have gotten it at all).
|
// again (if it should have gotten it at all).
|
||||||
bool feedFocus;
|
bool feedFocus;
|
||||||
if (message->FindBool("_feed_focus", &feedFocus) == B_OK && feedFocus)
|
if (message->FindBool("_feed_focus", &feedFocus) != B_OK || !feedFocus)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
message->RemoveName("_feed_focus");
|
message->RemoveName("_feed_focus");
|
||||||
|
Loading…
Reference in New Issue
Block a user