• Ken Thomases's avatar
    winemac: Ignore spurious or redundant notifications that the keyboard input source changed. · feb19ee6
    Ken Thomases authored
    In particular, when an input method for an Asian language (e.g. Pinyin) is
    selected, we were getting repeated notifications.  Querying the selected input
    method upon receiving them suggested that the keyboard layout changed to U.S.
    then back to Pinyin, then several redundant notifications with no apparent
    change.
    
    Since the handler for the posted KEYBOARD_CHANGED events sends WM_CANCELMODE to
    the active window, this was having bad effects.
    
    The spurious notifications can be distinguished by there being no current
    text input context or client.  To detect redundant notifications, we track the
    last keyboard input source and keyboard layout input source and compare with
    the new ones to see if they really changed.
    Signed-off-by: 's avatarKen Thomases <ken@codeweavers.com>
    Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
    feb19ee6
Name
Last commit
Last update
dlls Loading commit data...
documentation Loading commit data...
fonts Loading commit data...
include Loading commit data...
libs Loading commit data...
loader Loading commit data...
po Loading commit data...
programs Loading commit data...
server Loading commit data...
tools Loading commit data...
.mailmap Loading commit data...
ANNOUNCE Loading commit data...
AUTHORS Loading commit data...
COPYING.LIB Loading commit data...
LICENSE Loading commit data...
LICENSE.OLD Loading commit data...
MAINTAINERS Loading commit data...
Makefile.in Loading commit data...
README Loading commit data...
VERSION Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...