Menu select item stuck on screen after context or command menu has closed

Periodically when I select a menu command, the label or selected option gets "stuck" on screen and won't go away. I can close all open applications, including whichever one I was using when it got stuck, but it still won't go away.

In the screenshot below, I opened an new instance of IE just to show how the label stays on top. The label was not created by this instance of IE.

Lingering menu command label

(I added the circle in MS Paint. That part isn't stuck.)

The label that gets stuck is the first menu command I select in IE. If a label is already stuck, a new one does not get stuck (regardless of which instance(s) of IE are involved). Based on this knowledge, I now just open IE on my secondary monitor, carefully open the context menu so the Properties command is in the bottom corner, and click it. This is not a solution.

The floating label never moves and is transparent to mouse input (if I click it, it's as if I clicked the item behind it).

The label does not go away if I close all running applications. I haven't tried stopping services or closing system tray items like Live Mesh.

The label does go away if I change the screen resolution and then change it back.

Any ideas how I can stop this from happening? It's happened a half dozen times and it's becoming quite disrupting to my work.


The problem was introduced back in Windows 2000 when fading menu items were added. Originally, the feature was added in kernel-mode code and was tightly integrated into portions of the UI. Since it worked so well, it ended up staying there. The problem has appeared from time to time, but no one has had a reliable way to reproduce it in the kernel debugger to get it fixed.

The same effect can be achieved without changing the screen resolution or color depth. Go to Start -> Run -> and type tskill dwm. This command will reset the desktop window manager without the need to change the screen resolution.

Changing the screen resolution or color depth also resets the desktop window manager, so it's always been a workaround for the bug when it appears. Either of these solutions will fix the problem.


Last time I saw this was in Windows 2000 where it happened to me occasionally.

I suppose, a workaround would be to disable menu items fading out after clicking in the Performance options:

alt text


In Windows 7 (and probably Vista), using the task manager to kill "dwm.exe" (it restarts automatically) seems a pretty painless way to get rid of the artifact.


Right click Computer, Properties, Advanced System Settings, Advanced Tab, Performance-Settings, Uncheck both:

  • Fade or Slide menus into view and
  • Fade out Menu Items after clicking

Fixed.


I think it's faster to just change the colour depth. Once you've changed and clicked Apply, you can just answer NO to the "Do you want to keep these settings?" prompt. It will revert to your original colour depth (with the problem solved). Btw, I recommend you to not change the resolution because doing so will force Windows to recalculate window sizes and positions... twice! It's noticeably slower than changing colour depth.

Anyway this is definitely a video problem in Windows, so the only sure-fire way (other than restarting) would be to force Windows to fully refresh the video buffer. You can do that by killing dwm.exe, but changing colour depth is faster (no need to search long list of processes), safer (no need to risk your Windows' stability) and easier to grasp for novices.

Adding to this: The important thing may be to say "NO" when prompted to "keep the settings". If you say yes, then the orphan menu pieces may return.