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
caf18a64
Commit
caf18a64
authored
Aug 11, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set remove to TRUE in accept_hardware_message for messages that should
go to a different thread. Simplify the code a bit.
parent
d09c8a89
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
message.c
dlls/user/message.c
+9
-10
No files found.
dlls/user/message.c
View file @
caf18a64
...
...
@@ -1650,24 +1650,23 @@ static BOOL process_mouse_message( MSG *msg, UINT hw_id, ULONG_PTR extra_info, H
GUITHREADINFO
info
;
MOUSEHOOKSTRUCT
hook
;
BOOL
eatMsg
;
HWND
hWndScope
=
msg
->
hwnd
;
/* find the window to dispatch this mouse message to */
hittest
=
HTCLIENT
;
GetGUIThreadInfo
(
GetCurrentThreadId
(),
&
info
);
if
(
!
(
msg
->
hwnd
=
info
.
hwndCapture
))
if
(
info
.
hwndCapture
)
{
hittest
=
HTCLIENT
;
msg
->
hwnd
=
info
.
hwndCapture
;
}
else
{
/* If no capture HWND, find window which contains the mouse position.
* Also find the position of the cursor hot spot (hittest) */
if
(
!
IsWindow
(
hWndScope
))
hWndScope
=
0
;
if
(
!
(
msg
->
hwnd
=
WINPOS_WindowFromPoint
(
hWndScope
,
msg
->
pt
,
&
hittest
)))
msg
->
hwnd
=
GetDesktopWindow
();
msg
->
hwnd
=
WINPOS_WindowFromPoint
(
msg
->
hwnd
,
msg
->
pt
,
&
hittest
);
}
if
(
!
WIN_IsCurrentThread
(
msg
->
hwnd
))
if
(
!
msg
->
hwnd
||
!
WIN_IsCurrentThread
(
msg
->
hwnd
))
{
accept_hardware_message
(
hw_id
,
FALS
E
,
msg
->
hwnd
);
accept_hardware_message
(
hw_id
,
TRU
E
,
msg
->
hwnd
);
return
FALSE
;
}
...
...
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