Skip to content

gtk: do not set bell ringing if already focused - #13597

Merged
pluiedev merged 1 commit into
ghostty-org:mainfrom
lotheac:push-snlsnxxmyqms
Aug 5, 2026
Merged

pluiedev merged 1 commit into
ghostty-org:mainfrom
lotheac:push-snlsnxxmyqms

Conversation

@lotheac

@lotheac lotheac commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@lotheac
lotheac requested a review from a team as a code owner August 4, 2026 11:59
@ghostty-bot ghostty-bot Bot added the gtk Issues exclusive to GTK which are not OS-specific label Aug 4, 2026
@tristan957

Copy link
Copy Markdown
Member

Is this what we do on the macOS side? It is good to match behaviors. I'd also like to know if other terminals operate this way, specifically alacritty, kitty, and foot.

@lotheac

lotheac commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Is this what we do on the macOS side? It is good to match behaviors. I'd also like to know if other terminals operate this way, specifically alacritty, kitty, and foot.

not sure what macOS does, but it might have had a similar bug in the past: #8487

note that the bell ringing state only affects the terminal title (🔔 is added); ringBell() is called regardless of focus and regardless of whether the bell state was already ringing. that part sets the window urgency, so really this PR is only about not adding the bell icon to the title if the terminal is already focused. I'm not sure if alacritty/kitty/foot even have any manipulation of the window title based on bell; I used alacritty previously and I don't think I ever saw that.

@tristan957

Copy link
Copy Markdown
Member

Thanks for getting back to me! I would like another maintainer to review the UX change.

@pluiedev pluiedev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this makes sense. If anybody feels strongly that the old behavior should be the case we can always change it back or add a setting

@pluiedev
pluiedev merged commit 9e30f70 into ghostty-org:main Aug 5, 2026
100 checks passed
@github-actions github-actions Bot added this to the 1.4.0 milestone Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gtk Issues exclusive to GTK which are not OS-specific

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants