From 7f3d416290d7ec92e772f417d802813f5fb57387 Mon Sep 17 00:00:00 2001 From: Skoader Date: Thu, 27 Sep 2012 22:40:37 +1000 Subject: [PATCH] Fix no cursor when not the top level window. WM_MOUSEMOVE messages were only processed when the window was active. --- .../Plasma20/Sources/Plasma/Apps/plClient/winmain.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClient/winmain.cpp b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClient/winmain.cpp index a0c92a6f..c990b244 100644 --- a/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClient/winmain.cpp +++ b/MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/Apps/plClient/winmain.cpp @@ -453,7 +453,6 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) case WM_LBUTTONUP : case WM_RBUTTONUP : case WM_MBUTTONUP : // The middle mouse button was released. - case WM_MOUSEMOVE : case 0x020A: // fuc&ing windows b.s... { if (gClient && gClient->WindowActive() && gClient->GetInputManager()) @@ -463,6 +462,13 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) } break; + case WM_MOUSEMOVE: + { + if (gClient && gClient->GetInputManager()) + gClient->GetInputManager()->HandleWin32ControlEvent(message, wParam, lParam, hWnd); + } + break; + #if 0 case WM_KILLFOCUS: SetForegroundWindow(hWnd);