summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
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)) {