Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
bd06c87b
Commit
bd06c87b
authored
Jun 06, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Jun 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Use a separate helper to merge WM_MOUSEMOVE messages.
parent
2101d4d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
queue.c
server/queue.c
+9
-3
No files found.
server/queue.c
View file @
bd06c87b
...
...
@@ -577,13 +577,12 @@ static inline unsigned int get_unique_id(void)
return
id
;
}
/* try to merge a message with the last in the list; return 1 if successful */
static
int
merge_m
essag
e
(
struct
thread_input
*
input
,
const
struct
message
*
msg
)
/* try to merge a
WM_MOUSEMOVE
message with the last in the list; return 1 if successful */
static
int
merge_m
ousemov
e
(
struct
thread_input
*
input
,
const
struct
message
*
msg
)
{
struct
message
*
prev
;
struct
list
*
ptr
;
if
(
msg
->
msg
!=
WM_MOUSEMOVE
)
return
0
;
for
(
ptr
=
list_tail
(
&
input
->
msg_list
);
ptr
;
ptr
=
list_prev
(
&
input
->
msg_list
,
ptr
))
{
prev
=
LIST_ENTRY
(
ptr
,
struct
message
,
entry
);
...
...
@@ -611,6 +610,13 @@ static int merge_message( struct thread_input *input, const struct message *msg
return
1
;
}
/* try to merge a message with the messages in the list; return 1 if successful */
static
int
merge_message
(
struct
thread_input
*
input
,
const
struct
message
*
msg
)
{
if
(
msg
->
msg
==
WM_MOUSEMOVE
)
return
merge_mousemove
(
input
,
msg
);
return
0
;
}
/* free a result structure */
static
void
free_result
(
struct
message_result
*
result
)
{
...
...
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