Skip to content

Commit 113bbc0

Browse files
authored
Merge pull request #121 from GastonSg/fix/ContextMenu-Position
Fix context menu position acording to dpi setting
2 parents 9737877 + 28bf262 commit 113bbc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NotifyIconWpf/Interop/WindowMessageSink.cs

Lines changed: 1 addition & 1 deletion
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:

0 commit comments

Comments
 (0)