From 6410ed3c412ad9a9b688f40e981a70da03c8baca Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 12 Mar 2021 21:24:13 +0200 Subject: DocumentWidget: Don't handle clicks elsewhere --- src/ui/documentwidget.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ui') 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 cstr_String(linkUrl_GmDocument(d->doc, d->hoverLink->linkId))); return iTrue; } - if (ev->button.button == SDL_BUTTON_RIGHT) { + if (ev->button.button == SDL_BUTTON_RIGHT && + contains_Widget(w, init_I2(ev->button.x, ev->button.y))) { if (!d->menu || !isVisible_Widget(d->menu)) { d->contextLink = d->hoverLink; if (d->menu) { -- cgit v1.2.3