Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed #77, changed NIN_SELECT to trigger the mouse click event. #78

Merged
merged 1 commit into from
Sep 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/NotifyIconWpf/Interop/WindowMessageSink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ private void ProcessWindowMessage(uint msg, IntPtr wParam, IntPtr lParam)
switch (message)
{
case WindowsMessages.WM_CONTEXTMENU:
case WindowsMessages.NIN_SELECT:
case WindowsMessages.NIN_KEYSELECT:
/*
* GET_X_LPARAM should be used to retrieve anchor X-coordinate, this is defined as
Expand All @@ -271,6 +270,8 @@ private void ProcessWindowMessage(uint msg, IntPtr wParam, IntPtr lParam)
MouseEventReceived?.Invoke(MouseEvent.IconLeftMouseDown);
break;

case WindowsMessages.NIN_SELECT:
//Sent when the icon is selected with the left mouse button.
case WindowsMessages.WM_LBUTTONUP:
if (!isDoubleClick)
{
Expand Down