Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Feb 26, 2022

Conversation

progval
Copy link
Member

@progval progval commented Jan 23, 2022

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.
src/sui/sui_side_bar.c Show resolved Hide resolved
src/sui/sui_side_bar_item.c Show resolved Hide resolved
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