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