Fixed warning.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17807 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-06-12 23:18:29 +00:00
parent d51ce54011
commit 5b741ecbfd

View File

@ -2718,10 +2718,10 @@ BWindow::_SetFocus(BView *focusView, bool notifyInputServer)
// from a view which has the B_INPUT_METHOD_AWARE to a one
// which does not, or vice-versa
if (notifyInputServer) {
bool oldIMAware = false, newIMAware = false;
bool inputMethodAware = false;
if (focusView)
newIMAware = focusView->Flags() & B_INPUT_METHOD_AWARE;
BMessage msg(newIMAware ? IS_FOCUS_IM_AWARE_VIEW : IS_UNFOCUS_IM_AWARE_VIEW);
inputMethodAware = focusView->Flags() & B_INPUT_METHOD_AWARE;
BMessage msg(inputMethodAware ? IS_FOCUS_IM_AWARE_VIEW : IS_UNFOCUS_IM_AWARE_VIEW);
BMessenger messenger(focusView);
BMessage reply;
if (focusView)