Skip to content

Commit 17859d2

Browse files
committed
Merge branch 'develop'
2 parents 9737877 + 50faac1 commit 17859d2

File tree

4 files changed

+17
-8
lines changed

4 files changed

+17
-8
lines changed

src/Changelog.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ hardcodet.net NotifyIcon for WPF - Changelog
22
Copyright (c) 2009-2021 Philipp Sumi
33
Contact and Information: http://www.hardcodet.net
44

5+
2.0.1 (2024.10.16)
6+
*****
7+
8+
FIX Fix double execution of LeftClickCommand
9+
FIX Fix context menu position acording to dpi setting
10+
511
2.0.0 (2024.07.10)
612
*****
713

src/Directory.Build.props

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<DebugSymbols>True</DebugSymbols>
1010
<DebugType>embedded</DebugType>
1111

12-
<Copyright>Copyright (c) 2009-2022 Philipp Sumi</Copyright>
12+
<Copyright>Copyright (c) 2009 - 2019 Philipp Sumi, 2019 - $([System.DateTime]::Today.ToString(yyyy)) Philipp Sumi, Robin Krom, Jan Karger</Copyright>
1313
<Company>hardcodet.net</Company>
1414
<Authors>Philipp Sumi, Robin Krom, Jan Karger</Authors>
1515
<PackageIcon>icon.png</PackageIcon>
@@ -34,7 +34,7 @@ Source code and extensive sample application available at http://www.hardcodet.n
3434
</PropertyGroup>
3535

3636
<ItemGroup>
37-
<PackageReference Include="Nerdbank.GitVersioning" Version="3.5.109">
37+
<PackageReference Include="Nerdbank.GitVersioning" Version="3.6.143">
3838
<PrivateAssets>all</PrivateAssets>
3939
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
4040
</PackageReference>
@@ -56,7 +56,10 @@ Source code and extensive sample application available at http://www.hardcodet.n
5656
</PropertyGroup>
5757

5858
<ItemGroup>
59-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
59+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
60+
<PrivateAssets>all</PrivateAssets>
61+
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
62+
</PackageReference>
6063
<None Include="$(SolutionDir)\icon.png" Pack="true" PackagePath="\"/>
6164
</ItemGroup>
6265

src/NotifyIconWpf/Interop/WindowMessageSink.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ private void ProcessWindowMessage(uint msg, IntPtr wParam, IntPtr lParam)
240240
{
241241
X = (short)((nint)wParam & 0xFFFF),
242242
Y = (short)((nint)wParam >> 16 & 0xFFFF)
243-
});
243+
}.ScaleWithDpi());
244244
break;
245245

246246
case WindowsMessages.WM_MOUSEMOVE:
@@ -251,9 +251,9 @@ private void ProcessWindowMessage(uint msg, IntPtr wParam, IntPtr lParam)
251251
MouseEventReceived?.Invoke(MouseEvent.IconLeftMouseDown);
252252
break;
253253

254-
case WindowsMessages.NIN_SELECT:
255-
//Sent when the icon is selected with the left mouse button.
256-
case WindowsMessages.WM_LBUTTONUP:
254+
case WindowsMessages.NIN_SELECT when Version == NotifyIconVersion.Vista:
255+
// Sent when the icon is selected with the left mouse button.
256+
case WindowsMessages.WM_LBUTTONUP when Version != NotifyIconVersion.Vista:
257257
if (!isDoubleClick)
258258
{
259259
MouseEventReceived?.Invoke(MouseEvent.IconLeftMouseUp);

src/global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "8.0.100",
3+
"version": "8.0.403",
44
"rollForward": "feature",
55
"allowPrerelease": false
66
}

0 commit comments

Comments
 (0)