[PATCH 2/3] winex11.drv: set global key state

Alexandre Julliard julliard at winehq.org
Fri Sep 11 06:22:02 CDT 2009


Rafał Miłecki <zajec5 at gmail.com> writes:

> @@ -1250,6 +1250,21 @@ void X11DRV_send_keyboard_input( WORD wVk, WORD wScan, DWORD event_flags, DWORD
>              key_state_table[wVkStripped] = key_state_table[wVkL] | key_state_table[wVkR];
>          }
>  
> +        SERVER_START_REQ( set_global_key_state )
> +        {
> +            req->key      = wVk;
> +            req->state    = key_state_table[wVk];
> +            wine_server_call( req );
> +        }
> +        SERVER_END_REQ;
> +        SERVER_START_REQ( set_global_key_state )
> +        {
> +            req->key      = wVkStripped;
> +            req->state    = key_state_table[wVkStripped];
> +            wine_server_call( req );
> +        }
> +        SERVER_END_REQ;
> +

You don't want to add 2 extra server calls for every key, especially
since the server already receives the necessary information through the
key event.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list