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
54efd8a4
Commit
54efd8a4
authored
Sep 13, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Only remove WM_INPUT messages from the queue if PM_REMOVE is set.
parent
b8feef88
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
queue.c
server/queue.c
+5
-3
No files found.
server/queue.c
View file @
54efd8a4
...
...
@@ -1888,7 +1888,8 @@ static int check_hw_message_filter( user_handle_t win, unsigned int msg_code,
/* find a hardware message for the given queue */
static
int
get_hardware_message
(
struct
thread
*
thread
,
unsigned
int
hw_id
,
user_handle_t
filter_win
,
unsigned
int
first
,
unsigned
int
last
,
struct
get_message_reply
*
reply
)
unsigned
int
first
,
unsigned
int
last
,
unsigned
int
flags
,
struct
get_message_reply
*
reply
)
{
struct
thread_input
*
input
=
thread
->
queue
->
input
;
struct
thread
*
win_thread
;
...
...
@@ -1968,7 +1969,8 @@ static int get_hardware_message( struct thread *thread, unsigned int hw_id, user
data
->
hw_id
=
msg
->
unique_id
;
set_reply_data
(
msg
->
data
,
msg
->
data_size
);
if
(
msg
->
msg
==
WM_INPUT
)
release_hardware_message
(
current
->
queue
,
data
->
hw_id
,
1
,
0
);
if
(
msg
->
msg
==
WM_INPUT
&&
(
flags
&
PM_REMOVE
))
release_hardware_message
(
current
->
queue
,
data
->
hw_id
,
1
,
0
);
return
1
;
}
/* nothing found, clear the hardware queue bits */
...
...
@@ -2405,7 +2407,7 @@ DECL_HANDLER(get_message)
/* then check for any raw hardware message */
if
((
filter
&
QS_INPUT
)
&&
filter_contains_hw_range
(
req
->
get_first
,
req
->
get_last
)
&&
get_hardware_message
(
current
,
req
->
hw_id
,
get_win
,
req
->
get_first
,
req
->
get_last
,
reply
))
get_hardware_message
(
current
,
req
->
hw_id
,
get_win
,
req
->
get_first
,
req
->
get_last
,
re
q
->
flags
,
re
ply
))
return
;
/* now check for WM_PAINT */
...
...
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