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

Rémi Bernon rbernon at codeweavers.com
Thu Aug 22 14:03:53 CDT 2019


On 8/7/19 5:19 PM, Zebediah Figura wrote:
> 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.
> 
> 
Actually it does break some games. I'm trying to find way to make it right.
-- 
Rémi Bernon <rbernon at codeweavers.com>



More information about the wine-devel mailing list