server: Try to update the input key state even when the message is

dropped in queue_hardware_message. This should fix some problems with
the Alt key getting "stuck" after Alt-Tab.
oldstable
Alexandre Julliard 2006-02-14 10:43:15 +01:00
parent 90aaf6ba8f
commit 5d282dc891
1 changed files with 3 additions and 3 deletions

View File

@ -1222,14 +1222,14 @@ static void queue_hardware_message( struct msg_queue *queue, struct message *msg
{
user_handle_t win;
struct thread *thread;
struct thread_input *input;
struct thread_input *input = queue ? queue->input : foreground_input;
unsigned int msg_code;
last_input_time = get_tick_count();
win = find_hardware_message_window( queue ? queue->input : foreground_input, msg, &msg_code );
win = find_hardware_message_window( input, msg, &msg_code );
if (!win || !(thread = get_window_thread(win)))
{
if (input) update_input_key_state( input, msg );
free( msg );
return;
}