Skip to content

fix(notificationitem): show current input method name in SNI tooltip#1578

Merged
wengxt merged 3 commits into
fcitx:masterfrom
wyu71:fix/sni-tooltip-input-method-name
Jun 15, 2026
Merged

fix(notificationitem): show current input method name in SNI tooltip#1578
wengxt merged 3 commits into
fcitx:masterfrom
wyu71:fix/sni-tooltip-input-method-name

Conversation

@wyu71

@wyu71 wyu71 commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fix notifyNewTooltip() to compare actual tooltip content instead of the constant title() return value
  • notifyNewTooltip() was comparing against title() which always returns "Input Method", so NewToolTip D-Bus signal was never emitted and the tooltip never updated on input method switch

@wyu71 wyu71 marked this pull request as ready for review June 11, 2026 12:51
@wengxt

wengxt commented Jun 12, 2026

Copy link
Copy Markdown
Member
图片

Title is shown here under, which seems to be better to be constant string.

@wyu71 wyu71 force-pushed the fix/sni-tooltip-input-method-name branch from 6abae24 to e64cdcb Compare June 12, 2026 06:35
wyu71 added 3 commits June 15, 2026 09:35
The tooltip was hardcoded as "Input Method" and never updated on input
method switch. Refactor title() to return the current input method entry
name, and simplify tooltip() to reuse it. The existing notifyNewTooltip()
now correctly emits the NewToolTip D-Bus signal when the input method
changes.
…witch

notifyNewTooltip() was comparing against title() which always returns
the constant "Input Method", so NewToolTip signal was never emitted.
Fix by comparing the actual tooltip content instead.
…witch

notifyNewTooltip() was comparing against title() which always returns
the constant "Input Method", so NewToolTip signal was never emitted.
Fix by comparing the actual tooltip content instead.
@wyu71 wyu71 force-pushed the fix/sni-tooltip-input-method-name branch from e64cdcb to 7c83dc8 Compare June 15, 2026 01:35
@wyu71

wyu71 commented Jun 15, 2026

Copy link
Copy Markdown
Contributor Author

@wengxt ,Thanks for the feedback. Updated: title() and tooltip() are reverted to original. The only change now is in notifyNewTooltip() — it was comparing against title() which always returns the constant "Input Method", so the NewToolTip signal was never emitted. Now it compares the actual tooltip content (tooltip()'s title field) instead.

@wengxt wengxt merged commit 6ac6ae2 into fcitx:master Jun 15, 2026
5 checks passed
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