From 5de756948709c153894d6b13b5bbc62e722e4149 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 23 Jul 2016 22:10:24 +0200 Subject: Made the map widgets catch mouse release events, preventing events from trickling through to the HUD. --- src/client/mapwidget.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/client/mapwidget.h') diff --git a/src/client/mapwidget.h b/src/client/mapwidget.h index 38485fd..26a6876 100644 --- a/src/client/mapwidget.h +++ b/src/client/mapwidget.h @@ -52,6 +52,11 @@ protected: * */ virtual bool on_mousepress(const unsigned int button); + /** + * @brief mouse button release event handler + * */ + virtual bool on_mouserelease(const unsigned int button); + private: float mapwidget_zoom; -- cgit v1.2.3