summaryrefslogtreecommitdiff
path: root/src/ui/sidebarwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-08-25 16:29:17 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-08-25 16:29:17 +0300
commit9895b10c9cb2d69be718dd3847206e98631dc1c0 (patch)
tree03d434661a96d04f5bb054c07fa107e385aaabc5 /src/ui/sidebarwidget.c
parentb7fe868ef9eda18ab1a537e5b77c269d4f1fd1b8 (diff)
parentac5f5fb61f91233e93aa7d14d43213ae33b85828 (diff)
Merge branch 'dev' into work/v1.7
# Conflicts: # CMakeLists.txt # res/about/version.gmi
Diffstat (limited to 'src/ui/sidebarwidget.c')
-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 ea76a835..b816b572 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. */