Commit 0aa3b85b authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

imm32: Enumerate input contexts in ImmActivateLayout.

parent 462d5ca2
......@@ -564,13 +564,21 @@ static void ime_release( struct ime *ime )
LeaveCriticalSection( &ime_cs );
}
static BOOL CALLBACK enum_activate_layout( HIMC himc, LPARAM lparam )
{
if (ImmLockIMC( himc )) ImmUnlockIMC( himc );
return TRUE;
}
BOOL WINAPI ImmActivateLayout( HKL hkl )
{
FIXME( "hkl %p semi-stub!\n", hkl );
TRACE( "hkl %p\n", hkl );
if (hkl == GetKeyboardLayout( 0 )) return TRUE;
if (!ActivateKeyboardLayout( hkl, 0 )) return FALSE;
ImmEnumInputContext( 0, enum_activate_layout, 0 );
return TRUE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment