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
df8ec3a3
Commit
df8ec3a3
authored
Oct 10, 2016
by
Roman Pisl
Committed by
Alexandre Julliard
Oct 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorer: Send WM_CONTEXTMENU on WM_RBUTTONUP and NIN_SELECT on WM_LBUTTONUP.
Signed-off-by:
Roman Pisl
<
rpisl@seznam.cz
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fb70cdb4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
systray.c
programs/explorer/systray.c
+19
-0
No files found.
programs/explorer/systray.c
View file @
df8ec3a3
...
...
@@ -830,6 +830,25 @@ static LRESULT WINAPI tray_wndproc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM l
ret
=
PostMessageW
(
icon
->
owner
,
icon
->
callback_message
,
wpar
,
oldver
?
msg
:
MAKELPARAM
(
msg
,
icon
->
id
));
if
(
ret
&&
icon
->
version
>
0
)
{
switch
(
msg
)
{
case
WM_RBUTTONUP
:
/* notify the owner hwnd of the message */
WINE_TRACE
(
"relaying 0x%x
\n
"
,
WM_CONTEXTMENU
);
ret
=
PostMessageW
(
icon
->
owner
,
icon
->
callback_message
,
wpar
,
oldver
?
WM_CONTEXTMENU
:
MAKELPARAM
(
WM_CONTEXTMENU
,
icon
->
id
));
break
;
case
WM_LBUTTONUP
:
/* notify the owner hwnd of the message */
WINE_TRACE
(
"relaying 0x%x
\n
"
,
NIN_SELECT
);
ret
=
PostMessageW
(
icon
->
owner
,
icon
->
callback_message
,
wpar
,
oldver
?
NIN_SELECT
:
MAKELPARAM
(
NIN_SELECT
,
icon
->
id
));
break
;
default:
break
;
}
}
if
(
!
ret
&&
(
GetLastError
()
==
ERROR_INVALID_WINDOW_HANDLE
))
{
WINE_WARN
(
"application window was destroyed without removing "
...
...
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