From d493e8d2e930452bdf71f5d217ec31be3b9f9a00 Mon Sep 17 00:00:00 2001 From: jsmorley Date: Wed, 23 Sep 2009 13:45:39 +0000 Subject: [PATCH] Fix to Middle Mouse functionality. It was not detecting mouse actions in the [Rainmeter] section, only in [MeterName] --- Library/MeterWindow.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Library/MeterWindow.cpp b/Library/MeterWindow.cpp index 77742d2d..ddba55f8 100644 --- a/Library/MeterWindow.cpp +++ b/Library/MeterWindow.cpp @@ -3168,6 +3168,22 @@ bool CMeterWindow::DoAction(int x, int y, MOUSE mouse, bool test) } break; + case MOUSE_MMB_DOWN: + if (!m_MiddleMouseDownAction.empty()) + { + if (!test) m_Rainmeter->ExecuteCommand(m_MiddleMouseDownAction.c_str(), this); + return true; + } + break; + + case MOUSE_MMB_UP: + if (!m_MiddleMouseUpAction.empty()) + { + if (!test) m_Rainmeter->ExecuteCommand(m_MiddleMouseUpAction.c_str(), this); + return true; + } + break; + case MOUSE_OVER: if (!m_MouseOver) {