Patch from X512 (ticket #7408): Don't notify input server of focus change if window is not active.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42574 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2011-08-04 17:49:45 +00:00
parent 7949c8cbe4
commit 77f593de38

View File

@ -3200,7 +3200,7 @@ BWindow::_SetFocus(BView* focusView, bool notifyInputServer)
// we notify the input server if we are passing focus
// from a view which has the B_INPUT_METHOD_AWARE to a one
// which does not, or vice-versa
if (notifyInputServer) {
if (notifyInputServer && fActive) {
bool inputMethodAware = false;
if (focusView)
inputMethodAware = focusView->Flags() & B_INPUT_METHOD_AWARE;