diff options
Diffstat (limited to 'dw/selection.cc')
-rw-r--r-- | dw/selection.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dw/selection.cc b/dw/selection.cc index 9702eee0..311c551b 100644 --- a/dw/selection.cc +++ b/dw/selection.cc @@ -94,7 +94,11 @@ bool SelectionState::buttonPress (Iterator *it, int charPos, int linkNo, if (!event) return ret; - if (linkNo != -1) { + if (event->button == 3) { + // menu popup + layout->emitLinkPress (itWidget, linkNo, -1, -1, -1, event); + ret = true; + } else if (linkNo != -1) { // link handling (void) layout->emitLinkPress (itWidget, linkNo, -1, -1, -1, event); resetLink (); @@ -134,10 +138,6 @@ bool SelectionState::buttonPress (Iterator *it, int charPos, int linkNo, toChar = correctCharPos (to, charPos); } ret = true; - } else if (event->button == 3) { - // menu popup - layout->emitLinkPress (itWidget, -1, -1, -1, -1, event); - ret = true; } return ret; |