summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ui/sidebarwidget.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c
index 767847ac..c2ad7bc6 100644
--- a/src/ui/sidebarwidget.c
+++ b/src/ui/sidebarwidget.c
@@ -1523,7 +1523,9 @@ static iBool processEvent_SidebarWidget_(iSidebarWidget *d, const SDL_Event *ev)
1523 return iTrue; 1523 return iTrue;
1524 } 1524 }
1525 } 1525 }
1526 if (hoverItem_ListWidget(d->list) || isVisible_Widget(d->menu)) { 1526 if (ev->type == SDL_MOUSEBUTTONDOWN &&
1527 contains_Widget(as_Widget(d->list), init_I2(ev->button.x, ev->button.y)) &&
1528 (hoverItem_ListWidget(d->list) || isVisible_Widget(d->menu))) {
1527 /* Update the menu before opening. */ 1529 /* Update the menu before opening. */
1528 if (d->mode == bookmarks_SidebarMode && !isVisible_Widget(d->menu)) { 1530 if (d->mode == bookmarks_SidebarMode && !isVisible_Widget(d->menu)) {
1529 /* Remote bookmarks have limitations. */ 1531 /* Remote bookmarks have limitations. */