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

Restrict bell events to the proper window. #6012

Merged
merged 2 commits into from
Sep 14, 2024
Merged

Restrict bell events to the proper window. #6012

merged 2 commits into from
Sep 14, 2024

Conversation

loops
Copy link
Contributor

@loops loops commented Aug 22, 2024

As per the comment in mod.rs, bell events are sent to all windows; not just the window containing the pane which generated the event.

To prevent each bell ringing multiple times, the window event handler must check if it has the pane, and ignore the bell event if it doesn't.

This fixes bug #5985

As per the comment in mod.rs, bell events are sent to
all windows; not just the window containing the pane
which generated the event.

To prevent each bell ringing multiple times, the window
event handler must check if it has the pane, and ignore
the bell event if it doesn't.

This fixes bug wez#5985
Copy link
Owner

@wez wez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this!
Please amend to use early return style, otherwise looks good!

wezterm-gui/src/termwindow/mod.rs Outdated Show resolved Hide resolved
wezterm-gui/src/termwindow/mod.rs Outdated Show resolved Hide resolved
@loops
Copy link
Contributor Author

loops commented Sep 14, 2024

Made the change, and the diff looks more presentable :-) I added, a second commit with the changes, but I could squash them instead if preferred.

@wez wez merged commit e538799 into wez:main Sep 14, 2024
14 of 15 checks passed
wez added a commit that referenced this pull request Sep 14, 2024
@wez
Copy link
Owner

wez commented Sep 14, 2024

Thanks!

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.

2 participants