Skip to content

fix(gui): open the notebook tab context menu at the pointer - #743

Merged
got3nks merged 1 commit into
amule-org:masterfrom
got3nks:fix/notebook-tab-menu-position
Jul 31, 2026
Merged

fix(gui): open the notebook tab context menu at the pointer#743
got3nks merged 1 commit into
amule-org:masterfrom
got3nks:fix/notebook-tab-menu-position

Conversation

@got3nks

@got3nks got3nks commented Jul 31, 2026

Copy link
Copy Markdown

The right-click context menu on notebook tabs (e.g. the search-results tabs) opened misplaced on wxGTK — above the tab, near the top of the notebook, instead of at the cursor.

CMuleNotebook::OnRMButton passed event.GetPosition() to PopupMenu(). The right-click lands on the tab strip, which on a native wxGTK wxNotebook sits outside the client area PopupMenu() positions against, so the menu was offset upward by the tab-strip height. Dropping the explicit position lets it open at the pointer (wxMSW/wxOSX already default to the cursor, so no change there).

Verified on Linux (wxGTK): right-clicking a search-result tab now opens the menu at the cursor, and Close / Close all tabs / Close other tabs still act on the correct tab.

CMuleNotebook::OnRMButton passed event.GetPosition() to PopupMenu() for
the built-in Close/Close-tab menu. On wxGTK the right-click lands on the
tab strip, which sits outside the client area PopupMenu() positions
against, so the coordinate was offset by the tab-strip height and the
menu opened above the tab instead of at the cursor. Drop the explicit
position so it opens at the pointer.
@got3nks
got3nks merged commit 43cc884 into amule-org:master Jul 31, 2026
15 checks passed
@got3nks
got3nks deleted the fix/notebook-tab-menu-position branch July 31, 2026 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant