diff options
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r-- | src/ui/documentwidget.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index a65a5f11..b0107a75 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -2396,7 +2396,8 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e | |||
2396 | cstr_String(linkUrl_GmDocument(d->doc, d->hoverLink->linkId))); | 2396 | cstr_String(linkUrl_GmDocument(d->doc, d->hoverLink->linkId))); |
2397 | return iTrue; | 2397 | return iTrue; |
2398 | } | 2398 | } |
2399 | if (ev->button.button == SDL_BUTTON_RIGHT) { | 2399 | if (ev->button.button == SDL_BUTTON_RIGHT && |
2400 | contains_Widget(w, init_I2(ev->button.x, ev->button.y))) { | ||
2400 | if (!d->menu || !isVisible_Widget(d->menu)) { | 2401 | if (!d->menu || !isVisible_Widget(d->menu)) { |
2401 | d->contextLink = d->hoverLink; | 2402 | d->contextLink = d->hoverLink; |
2402 | if (d->menu) { | 2403 | if (d->menu) { |