Skip to content

Make the buffer menu apply to the right-clicked item instead of the active buffer#353

Merged
SilverRainZ merged 1 commit into
SrainApp:masterfrom
progval:buffer-contextual-menu
Feb 26, 2022
Merged

Make the buffer menu apply to the right-clicked item instead of the active buffer#353
SilverRainZ merged 1 commit into
SrainApp:masterfrom
progval:buffer-contextual-menu

Conversation

@progval

@progval progval commented Jan 23, 2022

Copy link
Copy Markdown
Member

I find it confusing that click-clicking does not apply to the clicked element.

This commit inserts a GtkEventBox containing the SuiSideBarItem in GtkListBoxRow
instead of inserting SuiSideBarItem directly.

Here is the difference when right-clicking a channel buffer while a server buffer is active:

Before:
screenshot-2022-01-23_11-34-41

After:
screenshot-2022-01-23_11-33-06

Another difference is that clicking the empty space of the ListBox no longer shows a menu at all.

…ctive buffer

I find it confusing that click-clicking does not apply to the clicked element.

This commit inserts a GtkEventBox containing the SuiSideBarItem in GtkListBoxRow
instead of inserting SuiSideBarItem directly.
Comment thread src/sui/sui_side_bar.c
Comment thread src/sui/sui_side_bar_item.c
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.

When right click on the server buffer, the popup menu is not correct

2 participants