From be8a173026257108cefb7c3848773741965bac95 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 9 Apr 2023 10:11:37 -0700 Subject: [PATCH] Debugger: Clear button flags on lost focus. This mouse tracking is kinda ugly. This works around an issue where when you removed a custom condition, the highlight would stick as if you were dragging. --- Windows/Debugger/CtrlDisAsmView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Windows/Debugger/CtrlDisAsmView.cpp b/Windows/Debugger/CtrlDisAsmView.cpp index 7b46ae2402..49525aa27d 100644 --- a/Windows/Debugger/CtrlDisAsmView.cpp +++ b/Windows/Debugger/CtrlDisAsmView.cpp @@ -128,6 +128,8 @@ LRESULT CALLBACK CtrlDisAsmView::wndProc(HWND hwnd, UINT msg, WPARAM wParam, LPA break; case WM_KILLFOCUS: ccp->hasFocus=false; + lmbDown = false; + rmbDown = false; ccp->redraw(); break; case WM_GETDLGCODE: