diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-12 21:24:13 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-12 21:24:13 +0200 |
commit | 6410ed3c412ad9a9b688f40e981a70da03c8baca (patch) | |
tree | 6a0ab755f93af9987c6cb48efd54ef946fd2d919 /src/ui | |
parent | 17ff3e81d376b6792d409dcbed8e48800f8d7f7a (diff) |
DocumentWidget: Don't handle clicks elsewhere
Diffstat (limited to 'src/ui')
-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) { |