[PATCH] winex11.drv: Also send input events when the keymap state has changed

Zebediah Figura zfigura at codeweavers.com
Wed Aug 7 10:19:48 CDT 2019


On 8/7/19 8:44 AM, Rémi Bernon wrote:
> When pressing Alt-Tab for example, the application receives the KeyPress
> event for Alt key before losing focus, but when focusing it back it
> never receives the corresponding KeyRelease event and this can lead to
> incorrect key state for applications listening on WM_SYSKEYUP/DOWN
> messages, or for applications that use dinput keyboard device which is
> implemented with the corresponding low-level keyboard hooks messages.
> 
> When focus is gained back the application receives a KeymapNotify to
> indicate the full keyboard state, and this can be used to make up for
> the missing KeyRelease events.
> 
> Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
> ---

When writing tests for 1bc9c4fdb I came to the conclusion that Windows 
doesn't send window messages in this case. Low-level hooks may be a 
different matter. I guess this change is not likely to break anything 
per se, but it's not strictly correct either.



More information about the wine-devel mailing list