Windows 11 IME Tray Icon Fix
Moves the input indicator to the left of the notification area so its width change cannot shift the tray icons.
Author: yumeyao
Default Stock Layout And The Bug

Screen Left <----------------------------------------------------- Screen Right Edge
[Chevron ^] | [SysPager (Tray Icons)] | [IME Indicator] | [Clock] | [Show Desktop]
The notification area (TrayNotifyWnd) is anchored to the right edge of the screen, while child windows are laid out left-to-right. Notice that the IME Indicator sits right in the middle, between the third-party tray icons (SysPager) and the clock.
When "Let me set a different input method for each app window" is enabled in a multilingual setup (e.g., English, Chinese, Japanese):
- While typing in an app, the indicator often displays 2 glyphs (e.g.,
CH + δΈ or JP + γ), occupying a wider slot.
- When you click a tray icon (such as Steam or WiFi),
WM_LBUTTONDOWN immediately shifts focus to explorer.exe.
- The shell defaults to English, shrinking the indicator down to 1 glyph (
ENG).
- Because the clock on the right is pinned to the right edge, the shrunk width forces everything to the left of the indicator (
SysPager and Chevron ^) to slide rightward.
- When
WM_LBUTTONUP fires, the icon you aimed at has moved, and your click lands on whichever neighboring icon slid under your cursor.
The Fix

[IME Indicator] | [Chevron ^] | [SysPager (Tray Icons)] | [Clock] | [Show Desktop]
The indicator takes the first slot and everything that used to sit left of it moves right by the indicator's width. Thus, every band is now to the right of the indicator, sits at a fixed distance from the right edge and never moves.
Mimicking Docked Language Bar?
Yes. But the docked language bar is broken in win10 (unstable, and won't work in remote desktop - even if you enable this option in both sides, and the latest MSPY doesn't support it unless you turn on "Use the old version of MSPY") and is completely removed in win11.
Notes and known limitations
- This mod is separated from the Win 10 fix because the UI technology (XAML vs Win32) is completely different. So they share no common code.
- No alternative modes. You can adjust width / hide icon using the official (m417z) mods "Taskbar height and icon size" and "Taskbar tray system icon tweaks".
- This mod alters the grid columns (indice), which might be changed by other mods too (Styler). The co-existence itself is fine, but recording the correct state (for editing settings / turning on or off on-the-fly) across multiple mods is techniclaly impossible. It's recommended to use one mod alone, if you need both, create a custom style theme with the icons swapped.
- Source code and reverse engineering credit goes to AI bot (hy4). Heavily guided to follow the framework of the official mods above, with AI-hallucinated overhead (it added a repeating timer) dropped. But not fully revised (don't want to learn XAML π).
SystemTrayFrameGrid can be a Grid or a StackPanel. Verified on Windows 11 24H2 LTSC (Grid) and 26H2 (StackPanel). Other versions should work as the mechanism is identical and the Windhawk should handle the injection properly, remain untested though.