summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-08-25 07:05:29 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-08-25 07:05:29 +0300
commitb12139a48ef9f1781b386f14d6e1c1adb83ce184 (patch)
tree89808d3c3f31876c0ed59d0d646619ca02e3c158 /src/ui
parent5e618a422b2fe4102861267cb5c4d81bc23699c8 (diff)
SidebarWidget: Fixed right-clicking on sidebar tabs
The sidebar context menu should open when clicking on the tabs, not the item context menu.
Diffstat (limited to 'src/ui')
-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. */