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
53c2028b
Commit
53c2028b
authored
Jul 04, 1999
by
Per Ångström
Committed by
Alexandre Julliard
Jul 04, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a problem with apps that override the default behaviour on
WM_MOUSEACTIVATE message (main window was not activated).
parent
423813e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
message.c
windows/message.c
+4
-3
No files found.
windows/message.c
View file @
53c2028b
...
@@ -316,7 +316,7 @@ static DWORD MSG_ProcessMouseMsg( MSG *msg, BOOL remove, INT16 hittest,
...
@@ -316,7 +316,7 @@ static DWORD MSG_ProcessMouseMsg( MSG *msg, BOOL remove, INT16 hittest,
/* Activate the window if needed */
/* Activate the window if needed */
if
(
h
Wnd
!=
GetActiveWindow
()
&&
hWnd
!=
GetDesktopWindow
())
if
(
h
wndTop
!=
GetForegroundWindow
()
&&
hwndTop
!=
GetDesktopWindow
())
{
{
LONG
ret
=
SendMessageA
(
hWnd
,
WM_MOUSEACTIVATE
,
hwndTop
,
LONG
ret
=
SendMessageA
(
hWnd
,
WM_MOUSEACTIVATE
,
hwndTop
,
MAKELONG
(
hittest
,
message
)
);
MAKELONG
(
hittest
,
message
)
);
...
@@ -324,10 +324,11 @@ static DWORD MSG_ProcessMouseMsg( MSG *msg, BOOL remove, INT16 hittest,
...
@@ -324,10 +324,11 @@ static DWORD MSG_ProcessMouseMsg( MSG *msg, BOOL remove, INT16 hittest,
if
((
ret
==
MA_ACTIVATEANDEAT
)
||
(
ret
==
MA_NOACTIVATEANDEAT
))
if
((
ret
==
MA_ACTIVATEANDEAT
)
||
(
ret
==
MA_NOACTIVATEANDEAT
))
eatMsg
=
TRUE
;
eatMsg
=
TRUE
;
if
(((
ret
==
MA_ACTIVATE
)
||
(
ret
==
MA_ACTIVATEANDEAT
))
if
(((
ret
==
MA_ACTIVATE
)
||
(
ret
==
MA_ACTIVATEANDEAT
))
)
&&
hwndTop
!=
GetActiveWindow
()
)
{
if
(
!
WINPOS_SetActiveWindow
(
hwndTop
,
TRUE
,
TRUE
))
if
(
!
WINPOS_SetActiveWindow
(
hwndTop
,
TRUE
,
TRUE
))
eatMsg
=
TRUE
;
eatMsg
=
TRUE
;
}
}
}
}
}
}
else
sendSC
=
(
remove
&&
sendSC
);
}
else
sendSC
=
(
remove
&&
sendSC
);
...
...
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