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
e630aa0b
Commit
e630aa0b
authored
Jul 11, 2001
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge WM_MOUSEMOVE messages.
parent
c3e8ac32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
2 deletions
+29
-2
queue.c
server/queue.c
+29
-2
No files found.
server/queue.c
View file @
e630aa0b
...
...
@@ -183,6 +183,26 @@ inline static void unlink_message( struct message_list *list, struct message *ms
else
list
->
first
=
msg
->
next
;
}
/* try to merge a message with the last in the list; return 1 if successful */
static
int
merge_message
(
struct
message_list
*
list
,
const
struct
message
*
msg
)
{
struct
message
*
prev
=
list
->
last
;
if
(
!
prev
)
return
0
;
if
(
prev
->
result
)
return
0
;
if
(
prev
->
win
!=
msg
->
win
)
return
0
;
if
(
prev
->
msg
!=
msg
->
msg
)
return
0
;
if
(
prev
->
type
!=
msg
->
type
)
return
0
;
/* now we can merge it */
prev
->
wparam
=
msg
->
wparam
;
prev
->
lparam
=
msg
->
lparam
;
prev
->
x
=
msg
->
x
;
prev
->
y
=
msg
->
y
;
prev
->
time
=
msg
->
time
;
prev
->
info
=
msg
->
info
;
return
1
;
}
/* free a message when deleting a queue or window */
static
void
free_message
(
struct
message
*
msg
)
{
...
...
@@ -686,8 +706,15 @@ DECL_HANDLER(send_message)
break
;
case
COOKED_HW_MESSAGE
:
case
RAW_HW_MESSAGE
:
append_message
(
&
recv_queue
->
msg_list
[
req
->
kind
],
msg
);
change_queue_bits
(
recv_queue
,
get_hardware_msg_bit
(
msg
),
0
);
if
(
msg
->
msg
==
WM_MOUSEMOVE
&&
merge_message
(
&
recv_queue
->
msg_list
[
req
->
kind
],
msg
))
{
free
(
msg
);
}
else
{
append_message
(
&
recv_queue
->
msg_list
[
req
->
kind
],
msg
);
change_queue_bits
(
recv_queue
,
get_hardware_msg_bit
(
msg
),
0
);
}
break
;
default
:
free
(
msg
);
...
...
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