Fixed the context menu positioning as well, following the previous fix to multimonitor setups.
authorpaulwerelds
Mon, 04 Oct 2010 16:56:42 +0000
changeset 209dee42c887ab0
parent 208 08635c9dac04
child 210 be7dc4a856aa
Fixed the context menu positioning as well, following the previous fix to multimonitor setups.
GUI/GadgetWindow.cs
     1.1 --- a/GUI/GadgetWindow.cs	Mon Oct 04 06:46:55 2010 +0000
     1.2 +++ b/GUI/GadgetWindow.cs	Mon Oct 04 16:56:42 2010 +0000
     1.3 @@ -140,8 +140,9 @@
     1.4          case WM_NCRBUTTONUP: {
     1.5              if (contextMenu != null)
     1.6                ShowContextMenu(new Point(
     1.7 -                (int)((uint)message.LParam & 0xFFFF),
     1.8 -                (int)(((uint)message.LParam >> 16) & 0xFFFF)));
     1.9 +                Macros.GET_X_LPARAM(message.LParam),
    1.10 +                Macros.GET_Y_LPARAM(message.LParam)
    1.11 +              ));
    1.12              message.Result = IntPtr.Zero;
    1.13            } break;
    1.14          case WM_WINDOWPOSCHANGING: {