summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-02-08 11:13:18 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-02-08 11:13:18 +0200
commitbcac8cde80db8ccaf2c95fbf6a04ca3145aedafe (patch)
tree90ee93016be20411023b08f2166de260209840cb /src/ui
parent592da516dc2eb4f4b9f3708481395073ca10d9f5 (diff)
DocumentWidget: Update hover link after context menu closes
IssueID #145
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/documentwidget.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 68965aa8..4063503f 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -2046,6 +2046,9 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd)
2046 } 2046 }
2047 return iTrue; 2047 return iTrue;
2048 } 2048 }
2049 else if (equalWidget_Command(cmd, w, "menu.closed")) {
2050 updateHover_DocumentWidget_(d, mouseCoord_Window(get_Window()));
2051 }
2049 return iFalse; 2052 return iFalse;
2050} 2053}
2051 2054
@@ -2483,7 +2486,7 @@ static iBool processEvent_DocumentWidget_(iDocumentWidget *d, const SDL_Event *e
2483 d->menu = makeMenu_Widget(w, data_Array(&items), size_Array(&items)); 2486 d->menu = makeMenu_Widget(w, data_Array(&items), size_Array(&items));
2484 deinit_Array(&items); 2487 deinit_Array(&items);
2485 } 2488 }
2486 processContextMenuEvent_Widget(d->menu, ev, d->hoverLink = NULL); 2489 processContextMenuEvent_Widget(d->menu, ev, {});
2487 } 2490 }
2488 } 2491 }
2489 if (processPlayerEvents_DocumentWidget_(d, ev)) { 2492 if (processPlayerEvents_DocumentWidget_(d, ev)) {