mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-08-30 22:05:08 +00:00
Fixed the context menu positioning as well, following the previous fix to multimonitor setups.
This commit is contained in:
@@ -140,8 +140,9 @@ namespace OpenHardwareMonitor.GUI {
|
|||||||
case WM_NCRBUTTONUP: {
|
case WM_NCRBUTTONUP: {
|
||||||
if (contextMenu != null)
|
if (contextMenu != null)
|
||||||
ShowContextMenu(new Point(
|
ShowContextMenu(new Point(
|
||||||
(int)((uint)message.LParam & 0xFFFF),
|
Macros.GET_X_LPARAM(message.LParam),
|
||||||
(int)(((uint)message.LParam >> 16) & 0xFFFF)));
|
Macros.GET_Y_LPARAM(message.LParam)
|
||||||
|
));
|
||||||
message.Result = IntPtr.Zero;
|
message.Result = IntPtr.Zero;
|
||||||
} break;
|
} break;
|
||||||
case WM_WINDOWPOSCHANGING: {
|
case WM_WINDOWPOSCHANGING: {
|
||||||
|
Reference in New Issue
Block a user