summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/window.cpp b/src/window.cpp
index d34f138b6..0fae692df 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -409,6 +409,12 @@ static void DispatchHoverEvent(Window *w, int x, int y)
GuiShowTooltips(wid->tool_tip);
return;
}
+
+ /* Widget has no index, so the window is not interested in it. */
+ if (wid->index < 0) return;
+
+ Point pt = { x, y };
+ w->OnHover(pt, wid->index);
}
/**