summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index 38129cbfc..83c7e3bb9 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -654,8 +654,10 @@ public:
* A click with the right mouse button has been made on the window.
* @param pt the point inside the window that has been clicked.
* @param widget the clicked widget.
+ * @return true if the click was actually handled, i.e. do not show a
+ * tooltip if tooltip-on-right-click is enabled.
*/
- virtual void OnRightClick(Point pt, int widget) {}
+ virtual bool OnRightClick(Point pt, int widget) { return false; }
/**
* The mouse is hovering over a widget in the window, perform an action for it, like opening a custom tooltip.