# HG changeset patch
# User paulwerelds
# Date 1286211402 0
# Node ID dee42c887ab0f9adcc20226fc33ca022b4484576
# Parent  08635c9dac04dee416299fefada59091bf0d6876
Fixed the context menu positioning as well, following the previous fix to multimonitor setups.

diff -r 08635c9dac04 -r dee42c887ab0 GUI/GadgetWindow.cs
--- a/GUI/GadgetWindow.cs	Mon Oct 04 06:46:55 2010 +0000
+++ b/GUI/GadgetWindow.cs	Mon Oct 04 16:56:42 2010 +0000
@@ -140,8 +140,9 @@
         case WM_NCRBUTTONUP: {
             if (contextMenu != null)
               ShowContextMenu(new Point(
-                (int)((uint)message.LParam & 0xFFFF),
-                (int)(((uint)message.LParam >> 16) & 0xFFFF)));
+                Macros.GET_X_LPARAM(message.LParam),
+                Macros.GET_Y_LPARAM(message.LParam)
+              ));
             message.Result = IntPtr.Zero;
           } break;
         case WM_WINDOWPOSCHANGING: {