Fix missing taskbar icons after sleep
On resume from sleep or hibernate, momentarily pulses the taskbar height by 1px and reverts it, forcing a re-layout that brings back icons that go missing on wake (Windows 11)
Author: therealgorgan
Works around a Windows 11 bug where some taskbar icons go missing after the PC
wakes from sleep or hibernate, normally requiring a manual explorer.exe
restart.
Instead of restarting explorer, this mod reproduces the exact refresh mechanism
that the Taskbar height and icon size mod (m417z) uses: when triggered, it
momentarily changes the taskbar height by 1 pixel and immediately reverts it.
That tiny real change forces the taskbar's XAML layout to fully re-measure and
re-render, which rebuilds the missing icons. A no-op message (which an earlier
version tried) does not work — the layout has to actually change.
- In steady state the mod changes nothing — all of its hooks pass straight
through to Windows, so your taskbar height, icon size, and dynamic icon
scaling are untouched.
- On every resume it fires the 1px pulse a few times on a staggered schedule
(configurable), to catch the taskbar whenever it settles into the broken state.
- Toggling the mod on triggers one pulse immediately, so the on/off switch
doubles as a manual "refresh now" button for testing.
This is a stripped-down fork of the Taskbar height and icon size mod: only the
taskbar-height plumbing is kept (no icon-size, button-width, or search hooks).
Only Windows 11 is supported.