diff options
author | corvid <corvid@lavabit.com> | 2009-10-29 02:34:17 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2009-10-29 02:34:17 +0000 |
commit | 06aa8e6786a22374139cbcf9d018e53865875467 (patch) | |
tree | 6a9925a5a54a06856569ea4d773b3a2c7c1d48a7 /dw/layout.cc | |
parent | 21f85b39f22ff0f5cd373a4cfedba115ee533e98 (diff) |
emit link press/release even when no widget present at point
Diffstat (limited to 'dw/layout.cc')
-rw-r--r-- | dw/layout.cc | 4 |
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; } |