Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
55d449e4
Commit
55d449e4
authored
May 14, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed another case where a mouse message could get assigned to a
different thread input.
parent
12f0b41d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
queue.c
server/queue.c
+14
-6
No files found.
server/queue.c
View file @
55d449e4
...
...
@@ -1245,11 +1245,11 @@ static int get_hardware_message( struct thread *thread, int hw_id, user_handle_t
while
(
ptr
)
{
struct
message
*
msg
=
LIST_ENTRY
(
ptr
,
struct
message
,
entry
);
ptr
=
list_next
(
&
input
->
msg_list
,
ptr
);
win
=
find_hardware_message_window
(
input
,
msg
,
&
msg_code
);
if
(
!
win
||
!
(
win_thread
=
get_window_thread
(
win
)))
{
/* no window at all, remove it */
ptr
=
list_next
(
&
input
->
msg_list
,
ptr
);
update_input_key_state
(
input
,
msg
);
list_remove
(
&
msg
->
entry
);
free_message
(
msg
);
...
...
@@ -1257,11 +1257,20 @@ static int get_hardware_message( struct thread *thread, int hw_id, user_handle_t
}
if
(
win_thread
!=
thread
)
{
/* wake the other thread */
set_queue_bits
(
win_thread
->
queue
,
get_hardware_msg_bit
(
msg
)
);
if
(
win_thread
->
queue
->
input
==
input
)
{
/* wake the other thread */
set_queue_bits
(
win_thread
->
queue
,
get_hardware_msg_bit
(
msg
)
);
got_one
=
1
;
}
else
{
/* for another thread input, drop it */
update_input_key_state
(
input
,
msg
);
list_remove
(
&
msg
->
entry
);
free_message
(
msg
);
}
release_object
(
win_thread
);
got_one
=
1
;
ptr
=
list_next
(
&
input
->
msg_list
,
ptr
);
continue
;
}
release_object
(
win_thread
);
...
...
@@ -1271,7 +1280,6 @@ static int get_hardware_message( struct thread *thread, int hw_id, user_handle_t
if
(
got_one
||
!
check_hw_message_filter
(
win
,
msg_code
,
filter_win
,
first
,
last
))
{
clear_bits
&=
~
get_hardware_msg_bit
(
msg
);
ptr
=
list_next
(
&
input
->
msg_list
,
ptr
);
continue
;
}
/* now we can return it */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment