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
6ac82b2a
Commit
6ac82b2a
authored
Jun 10, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Jun 12, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Use hardware message category when checking filter.
parent
3ae2dc46
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
queue.c
server/queue.c
+8
-5
No files found.
server/queue.c
View file @
6ac82b2a
...
...
@@ -2114,19 +2114,19 @@ static void queue_custom_hardware_message( struct desktop *desktop, user_handle_
static
int
check_hw_message_filter
(
user_handle_t
win
,
unsigned
int
msg_code
,
user_handle_t
filter_win
,
unsigned
int
first
,
unsigned
int
last
)
{
if
(
msg_code
>=
WM_KEYFIRST
&&
msg_code
<=
WM_KEYLAST
)
switch
(
get_hardware_msg_bit
(
msg_code
)
)
{
case
QS_KEY
:
/* we can only test the window for a keyboard message since the
* dest window for a mouse message depends on hittest */
if
(
filter_win
&&
win
!=
filter_win
&&
!
is_child_window
(
filter_win
,
win
))
return
0
;
/* the message code is final for a keyboard message, we can simply check it */
return
check_msg_filter
(
msg_code
,
first
,
last
);
}
else
/* mouse message */
{
/* we need to check all possible values that the message can have in the end */
case
QS_MOUSEMOVE
:
case
QS_MOUSEBUTTON
:
/* we need to check all possible values that the message can have in the end */
if
(
check_msg_filter
(
msg_code
,
first
,
last
))
return
1
;
if
(
msg_code
==
WM_MOUSEWHEEL
)
return
0
;
/* no other possible value for this one */
...
...
@@ -2141,6 +2141,9 @@ static int check_hw_message_filter( user_handle_t win, unsigned int msg_code,
if
(
check_msg_filter
(
msg_code
+
(
WM_NCLBUTTONDBLCLK
-
WM_LBUTTONDOWN
),
first
,
last
))
return
1
;
}
return
0
;
default:
return
check_msg_filter
(
msg_code
,
first
,
last
);
}
}
...
...
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