Grey overlay placeholder box remains stuck on desktop after minimize or close (DWM race condition)

I’ve been experiencing a very specific (and extremely annoying) bug with the TS6 beta overlay for nearly a year now.

What happens:

  • When launching/restoring TS6 from minimized, a solid grey rectangle appears first (the placeholder/animation canvas).
  • The actual UI then slides in from the taskbar area on top of it.
  • On minimize or close, the UI disappears correctly, but the grey placeholder box is not removed from the DWM compositor. It stays permanently visible on the desktop as a ghost rectangle.

Findings:

  • This only occurs when actually minimizing or fully closing TeamSpeak.
  • If I do not close/minimize TS6, simply unminimizing again makes the grey box disappear normally.
  • It is very sporadic (happens maybe once every few days/weeks), but has been reproducible on my system for almost a year across multiple beta versions.
  • Normal fixes do not work:
    • Restarting TS6 processes
    • Restarting explorer.exe
    • Win+Ctrl+Shift+B (full graphics driver reset)
    • Toggling overlay settings, hardware acceleration, etc.

Workaround:
Killing the Desktop Window Manager with taskkill /f /im dwm.exe (or signing out and back in of Windows) instantly clears it. This proves it’s a DWM surface that was never properly destroyed.

This feels like the same “grey placeholder hack” you’re using to prevent transparency/flicker during the slide-in animation. The destruction path on close/minimize isn’t 100% reliable.

Thanks!