From 4800037ad36d3059c584ff523e4c9275616d416b Mon Sep 17 00:00:00 2001 From: myk002 Date: Fri, 16 Sep 2022 13:49:46 -0700 Subject: [PATCH] in dwarf mode, we must use lbut_down --- plugins/overlay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/overlay.cpp b/plugins/overlay.cpp index 9a5c625ab..c4bbfb95b 100644 --- a/plugins/overlay.cpp +++ b/plugins/overlay.cpp @@ -101,7 +101,7 @@ static bool clicked = false; static bool handle_click() { int32_t x, y; - if (!enabler->tracking_on || !enabler->mouse_lbut || clicked || + if (!enabler->tracking_on || !enabler->mouse_lbut_down || clicked || !Gui::getMousePos(x, y)) return false; if (y == gps->dimy - 1 && x >= 1 && (size_t)x <= button_text.size()) {