From adb2d051bf2446e5ad748e922ff06aa52f22df6e Mon Sep 17 00:00:00 2001
From: Marcel <marcel.kehrberg@student.reutlingen-university.de>
Date: Mon, 10 Mar 2025 20:53:08 +0100
Subject: [PATCH] Tray Icon position Fix

---
 .../InnoLabProjektDektopApp/Utils/NotifyIconManager.cs         | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/InnoLabProjektDektopApp/InnoLabProjektDektopApp/Utils/NotifyIconManager.cs b/InnoLabProjektDektopApp/InnoLabProjektDektopApp/Utils/NotifyIconManager.cs
index 5e2585d..cce6aeb 100644
--- a/InnoLabProjektDektopApp/InnoLabProjektDektopApp/Utils/NotifyIconManager.cs
+++ b/InnoLabProjektDektopApp/InnoLabProjektDektopApp/Utils/NotifyIconManager.cs
@@ -131,7 +131,8 @@ namespace InnoLabProjektDektopApp.Utils
             // Reopen the context menu if requested
             if (showContextMenu)
             {
-                _notifyIcon.ContextMenuStrip.Show();
+                var mousePosition = System.Windows.Forms.Control.MousePosition;
+                _notifyIcon.ContextMenuStrip.Show(mousePosition);
             }
         }
 
-- 
GitLab