Rafał Miłecki zajec5@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.