From 77f593de386af0da168b31b2f754280ea64b2679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Thu, 4 Aug 2011 17:49:45 +0000 Subject: [PATCH] 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 --- src/kits/interface/Window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/interface/Window.cpp b/src/kits/interface/Window.cpp index 77b7b00e5c..a14759f81a 100644 --- a/src/kits/interface/Window.cpp +++ b/src/kits/interface/Window.cpp @@ -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;