aboutsummaryrefslogtreecommitdiff
path: root/dw/image.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dw/image.cc')
-rw-r--r--dw/image.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/dw/image.cc b/dw/image.cc
index e200e5b9..4230d115 100644
--- a/dw/image.cc
+++ b/dw/image.cc
@@ -226,20 +226,28 @@ void Image::enterNotifyImpl (core::EventCrossing *event)
{
// BUG: this is wrong for image maps, but the cursor position is unknown.
currLink = getStyle()->x_link;
+ core::style::Tooltip *tooltip = getStyle()->x_tooltip;
if (currLink != -1) {
(void) emitLinkEnter (currLink, -1, -1, -1);
}
+ if (tooltip) {
+ tooltip->onEnter();
+ }
}
void Image::leaveNotifyImpl (core::EventCrossing *event)
{
+ core::style::Tooltip *tooltip = getStyle()->x_tooltip;
clicking = false;
if (currLink != -1) {
currLink = -1;
(void) emitLinkEnter (-1, -1, -1, -1);
}
+ if (tooltip) {
+ tooltip->onLeave();
+ }
}
/*