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
9f774ada
Commit
9f774ada
authored
Oct 10, 2016
by
Roman Pisl
Committed by
Alexandre Julliard
Oct 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Implement NIM_SETVERSION.
Signed-off-by:
Roman Pisl
<
rpisl@seznam.cz
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6d7a32a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
7 deletions
+37
-7
systray.c
dlls/winex11.drv/systray.c
+37
-7
No files found.
dlls/winex11.drv/systray.c
View file @
9f774ada
...
...
@@ -65,6 +65,7 @@ struct tray_icon
UINT
info_flags
;
/* flags for info balloon */
UINT
info_timeout
;
/* timeout for info balloon */
HICON
info_icon
;
/* info balloon icon */
UINT
version
;
/* notify icon api version */
};
static
struct
list
icon_list
=
LIST_INIT
(
icon_list
);
...
...
@@ -484,15 +485,37 @@ static LRESULT WINAPI tray_icon_wndproc(HWND hwnd, UINT msg, WPARAM wparam, LPAR
case
WM_LBUTTONDBLCLK
:
case
WM_RBUTTONDBLCLK
:
case
WM_MBUTTONDBLCLK
:
/* notify the owner hwnd of the message */
TRACE
(
"relaying 0x%x
\n
"
,
msg
);
ret
=
PostMessageW
(
icon
->
owner
,
icon
->
callback_message
,
icon
->
id
,
msg
);
if
(
!
ret
&&
(
GetLastError
()
==
ERROR_INVALID_WINDOW_HANDLE
))
{
WARN
(
"application window was destroyed, removing icon %u
\n
"
,
icon
->
id
);
delete_icon
(
icon
);
WPARAM
wpar
;
BOOL
oldver
;
oldver
=
icon
->
version
<=
NOTIFY_VERSION
;
if
(
oldver
)
{
/* 0 up to NOTIFYICON_VERSION (=3) */
wpar
=
icon
->
id
;
}
else
{
/* NOTIFYICON_VERSION_4 */
RECT
rect
;
WORD
x
,
y
;
GetWindowRect
(
icon
->
window
,
&
rect
);
x
=
rect
.
left
+
LOWORD
(
lparam
);
y
=
rect
.
top
+
HIWORD
(
lparam
);
wpar
=
MAKEWPARAM
(
x
,
y
);
}
/* notify the owner hwnd of the message */
TRACE
(
"relaying 0x%x
\n
"
,
msg
);
ret
=
PostMessageW
(
icon
->
owner
,
icon
->
callback_message
,
wpar
,
oldver
?
msg
:
MAKELPARAM
(
msg
,
icon
->
id
));
if
(
!
ret
&&
(
GetLastError
()
==
ERROR_INVALID_WINDOW_HANDLE
))
{
WARN
(
"application window was destroyed, removing icon %u
\n
"
,
icon
->
id
);
delete_icon
(
icon
);
}
return
0
;
}
return
0
;
case
WM_WINDOWPOSCHANGED
:
update_systray_balloon_position
();
...
...
@@ -834,6 +857,13 @@ int CDECL wine_notify_icon( DWORD msg, NOTIFYICONDATAW *data )
case
NIM_MODIFY
:
if
((
icon
=
get_icon
(
data
->
hWnd
,
data
->
uID
)))
ret
=
modify_icon
(
icon
,
data
);
break
;
case
NIM_SETVERSION
:
if
((
icon
=
get_icon
(
data
->
hWnd
,
data
->
uID
)))
{
icon
->
version
=
data
->
u
.
uVersion
;
ret
=
TRUE
;
}
break
;
case
0xdead
:
/* Wine extension: owner window has died */
cleanup_icons
(
data
->
hWnd
);
break
;
...
...
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