mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
server: Don't drop mouse messages that should go to a different thread input.
Instead requeue them into the proper destination queue. Reported by Ulrich Czekalla.
This commit is contained in:
parent
b0c9e753d5
commit
93938ebe5e
@ -1222,12 +1222,20 @@ static void release_hardware_message( struct msg_queue *queue, unsigned int hw_i
|
||||
struct thread *owner = get_window_thread( new_win );
|
||||
if (owner)
|
||||
{
|
||||
if (owner->queue->input == input)
|
||||
msg->win = new_win;
|
||||
if (owner->queue->input != input)
|
||||
{
|
||||
msg->win = new_win;
|
||||
set_queue_bits( owner->queue, get_hardware_msg_bit( msg ));
|
||||
remove = 0;
|
||||
list_remove( &msg->entry );
|
||||
if (msg->msg == WM_MOUSEMOVE && merge_message( owner->queue->input, msg ))
|
||||
{
|
||||
free_message( msg );
|
||||
release_object( owner );
|
||||
return;
|
||||
}
|
||||
list_add_tail( &owner->queue->input->msg_list, &msg->entry );
|
||||
}
|
||||
set_queue_bits( owner->queue, get_hardware_msg_bit( msg ));
|
||||
remove = 0;
|
||||
release_object( owner );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user