summaryrefslogtreecommitdiff
path: root/dw/layout.cc
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2009-10-29 02:34:17 +0000
committercorvid <corvid@lavabit.com>2009-10-29 02:34:17 +0000
commit06aa8e6786a22374139cbcf9d018e53865875467 (patch)
tree6a9925a5a54a06856569ea4d773b3a2c7c1d48a7 /dw/layout.cc
parent21f85b39f22ff0f5cd373a4cfedba115ee533e98 (diff)
emit link press/release even when no widget present at point
Diffstat (limited to 'dw/layout.cc')
-rw-r--r--dw/layout.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/dw/layout.cc b/dw/layout.cc
index e1f79223..b30831c7 100644
--- a/dw/layout.cc
+++ b/dw/layout.cc
@@ -932,6 +932,10 @@ bool Layout::processMouseEvent (MousePositionEvent *event,
}
}
}
+ if (type == BUTTON_PRESS)
+ return emitLinkPress (NULL, -1, -1, -1, -1, (EventButton*)event);
+ else if (type == BUTTON_RELEASE)
+ return emitLinkRelease(NULL, -1, -1, -1, -1, (EventButton*)event);
return false;
}