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

322

153

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.

Sam Harwell

Posted 2009-10-18T17:31:11.937

Reputation: 6 762

(reading this post with a ghost menu item floating over it) I think it's in core Windows actually, as I have had this happen with PDF reader's main menu and Windows Explorer context menu. A fix for this is switching resolution back and forth, but it's only a temporary fix to get rid of the ghost. – Stijn de Witt – 2015-06-18T00:05:46.517

This seems never fixed. It happens on my Surface Book 2, running Windows 10 17134. (I choose to stick with this version because there are more severe kernel bugs with new versions.) The bug can be temporarily worked around by killing dwm.exe. It can be otherwise worked around by disabling Intel UHD 620 or "fade out menu items after clicking". Anyway, those are workarounds, not fixes. I will always lose some functionalities for them. Sad. – FrankHB – 2020-02-05T13:09:51.380

Thanks for the resolution change - it does work even when actually not changing it (moving slider to something and move it back). Works great! – pimvdb – 2011-09-18T11:14:30.617

1I had this happen a LOT in the betas of Win7, particularly when executing in a VM. It doesn't happen anymore, but I'm not sure exactly when it changed.

I suggest updating your video card driver and, one by one, disabling startup programs until it stops. I think it was either my driver, UltraMon, or WinSplit Revolution, but never narrowed it down. – OwenP – 2009-10-18T17:43:34.403

1I have some programs do that in Vista. I don't have a solution. – Henk – 2009-10-18T22:05:16.753

Happened on Win7 SP1 – Sakher – 2013-05-30T16:31:31.333

20Happens. Start - Run - "tskill dwm" or kill DWM.EXE from task manager, it will restart instantly with menu items gone. – Петър Петров – 2013-10-07T18:47:34.060

Just started happening on my Laptop and my Desktop all the time since some recent Windows update. So annoying. – Jotham – 2013-12-22T05:23:55.067

@Jotham: Yes, same for me. This solution fixed it.

– awe – 2014-01-02T10:42:36.903

1Happened to me some minutes ago. It wasn't a tooltip, but a menu item stuck on screen when IE11 devtools crashed. The tskill dwn trick didn't work, while changing the color depth did. – MaxArt – 2014-01-15T14:56:27.113

1Internet Explorer 11 seems to be a big offender of leaving these ghost menu selections on the screen. – Matthew Lock – 2014-03-20T01:04:09.900

Answers

325

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.

Sam Harwell

Posted 2009-10-18T17:31:11.937

Reputation: 6 762

Great! This happens all the time for me. Thanks! – Eric Holmes – 2014-06-24T14:27:49.550

When I try to run that command, I get "Windows cannot find 'tskill'" I'm on Windows 8.1. Am I missing something in my environment path variables? – HotN – 2015-03-27T02:20:10.720

I know how to do it in windows 8.1... I'm just waiting for SO to give me some rep so I can post the answer! – wordsforthewise – 2015-05-21T06:07:37.717

alright...no luck from SO, so anyway here's how to do it in windows 8:

http://superuser.com/questions/656162/windows-8-restart-desktop-window-manager/925979#925979

open the command prompt with administrative rights windows key -> type 'cmd' -> right click 'command prompt' and choose 'run as administrator' then type

taskkill /f /im dwm.exe
– wordsforthewise – 2015-06-10T06:08:07.753

+1 However, I had to do it a different way: Start > "cmd" > Run as administrator > taskkill /im dwm.exe. – Dog Lover – 2015-08-16T03:00:11.213

For me, just selecting "run as admin" works – john – 2018-10-24T00:07:22.313

3I am using Windows 7 Ultimate. This is how I resolved the issue. Go to Control Panel > Change Theme. Set the theme to High Contrast White. The ghosted menu should go away. Set your theme back to what it was. – H A – 2012-07-11T17:06:26.917

I had this issue with other overlays on Windows 8 too. I was remoted in at the time. My fix was just now was to disconnect from remote desktop and reconnect. – GotDibbs – 2013-03-25T15:43:43.847

1I just had a balloon tip's shadow stuck on screen (on top of everything else!). Changing resolutions didn't work for me, but changing color depth did. I switched the depth to 16-bit, then back to 32-bit. That seemed to do the trick. – ADTC – 2013-04-19T14:08:16.110

I think this has happened to me twice now when closing down an android emulator. – Erik Reppen – 2013-05-21T20:07:26.937

I found it easy to go into screen resolution and disconnect the given monitor. When the resolution changes, I pick "Revert" and go back the way it was, then cancel out of the window. Easy way to reset the desktop window manager as necessary. Thanks, @280Z28! – Erick Robertson – 2013-06-26T14:13:04.917

I have this problem on a laptop which is plugged into two screens. I simply unplug the hdmi monitor cable and plug it back in. Takes about 5 seconds. Obviously not a solution for everyone – Chris Nevill – 2013-08-09T12:14:27.890

31Start - Run - tskill dwm - always fixes it - this really forces DWM to restart. – Петър Петров – 2013-10-07T18:44:00.107

I cannot +1 this answer again, so please take this great compliment. I've been here before, and I'm here again. – Erick Robertson – 2013-10-29T23:23:21.187

4

For permanent solution, see next answer.

– awe – 2014-01-02T10:40:38.460

3Had this happen today for the first time ever. After using tskill dwm, it goes away, but has come back with the first menu item I select afterward. Here's hoping it doesn't come back after I reboot. [crosses fingers] – mouseas – 2014-01-30T23:40:09.507

+1000 if I could! You made my day! – Yehuda Shapira – 2014-02-25T07:50:56.910

This is happening to me every day on both my laptop and desktop running W7 pro. Running tskill dwm clears the screen, but the problem happens again very quickly. I'm having to run that command at least a dozen times a day. Any suggestions? – Nate – 2014-03-02T17:39:11.960

191

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

Joey

Posted 2009-10-18T17:31:11.937

Reputation: 36 381

1Note that this setting doesn't prevent all cases. I just had a network status popup get stuck on-screen and I have this disabled. – guymid – 2015-01-22T08:29:58.660

1It is the definitive solution. tskill dwm is not the solution, but a palliative action. – kokbira – 2017-08-14T11:49:25.850

@SvenHecht Please consider punctually revising your sentence. Your sentence needs a comma. – chx101 – 2018-11-30T04:57:02.537

31Took me a trip to Google to see how to get to that screen:

  • Right Click Computer and select Properties from menu
  • Choose Advanced System Settings
  • In the Performance area, click Settings
  • < – Al Crowley – 2011-04-08T11:50:29.470

28@AlCrowley: Or simply type "performance" into the start menu and choose "Adjust the appearance and performance of Windows". – Joey – 2011-04-08T16:42:30.260

2This solution worked for me on Windows 7. Thanks. – Ankur – 2013-04-10T06:36:05.983

You can also type "fade" into the start menu and it will also find the "Adjust appearance" task. There are lots of keywords that can get you there. – Soviut – 2013-08-08T03:56:33.350

1Awesome! Disabled fading effects, were useless anyway. – None – 2013-09-28T15:20:21.670

tskill dwm - the easiest way. – Петър Петров – 2013-10-07T18:44:57.503

2+1 for the permanent solution (for one machine anyways) – Erick Robertson – 2013-10-30T07:14:48.003

5Also if you disable the two checkboxes above contextmenus will appear much faster – Sven Hecht – 2013-11-03T13:33:08.483

@Sven, that's a non-issue, usually, as they will respond to keypresses as soon as they start appearing. And you're not fast enough with the mouse to click a menu item that's currently fading in anyway. – Joey – 2013-11-03T21:43:47.033

2This is probably the best long term solution. It is only a relatively minor reduction in visual styling (which most people will never notice anyway). Bonus, it makes menu's work just a little faster. – Chase – 2014-01-03T08:13:09.820

Problem recently popped up for me after being dormant for a while. Tried disableing Fade Out Menu, but that did not seem to resolve it. Have now disabled the two checkboxes above to see if that has any impact. – Bob Weber – 2014-01-13T21:57:42.527

This is the way to fix it. +1 and an "attaboy"! – Robusto – 2014-01-16T17:10:09.583

What's an »attaboy«? – Joey – 2014-01-16T19:15:50.230

Awesome! This was driving me crazy, and I've always found the fading a little annoying. +1 – Howard Renollet – 2014-01-27T20:00:55.467

28

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.

Brandon

Posted 2009-10-18T17:31:11.937

Reputation: 281

I know this is rather old but I just ran into this problem recently and this is the one that fixed it for me. – jefffan24 – 2013-04-22T13:22:41.123

worked for me, too bad it reset my theme – Daniel – 2013-11-15T04:06:50.833

28

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.

user17365

Posted 2009-10-18T17:31:11.937

Reputation: 289

tskill dwm didn't actually work for me. I had to restart. On Win 7. – Almo – 2014-08-21T13:32:19.047

15Unfortunately this is just a very temporary solution at least for me - even if the stuck menu item disappears after killing dwm.exe a new one gets stuck as soon as I click any menu item again. – alexteg – 2011-01-18T19:36:26.153

3At first, I thought this would work, but unfortunately alexteg is right. I just tried to kill dwm, and indeed the menu item disappeared, but within a minute a new menu item got stuck (and that's hardly a coincidence, since this Windows bug manifests itself rather seldom). At least, with this approach, you can replace the stuck menu item with a new one, the on-screen position of which you can decide for yourself. – Andreas Rejbrand – 2012-09-17T16:21:29.683

1

Thanks, with http://superuser.com/a/57021/152255 it works fine.

– onetdev – 2013-05-08T07:53:51.017

1I combined this with @Joey's answer. Joey's answer seems to stop it from occurring, but doesn't clean up the problem on screen at the moment. This clears out the problem on screen at the moment. Running a full screen DirectX game also seems to clear the problem. – AJ Henderson – 2013-08-15T03:09:29.250

Even faster, type "tskill dwm" in Run :) – Петър Петров – 2013-10-07T18:45:22.427

11

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.

user34216

Posted 2009-10-18T17:31:11.937

Reputation: 119

10

Enough tskill dwm commands seems to stop dwm re-starting, so you may need to restart the Desktop Window Manager Session Manager in Services:

enter image description here

Matthew Lock

Posted 2009-10-18T17:31:11.937

Reputation: 4 254

6

I recently started getting this problem on a Windows 7 Professional Thinkpad W510 and a generic i7 workstation running Windows 7 Ultimate. Having it happen to both machines was a source of interest and typing 'tskill dwm' would do things like break screenshot and felt like a bad work around.

In my case I have found the problem was the Logitech SetPoint process crashing. Disabling the on screen notification modifications it makes to the system seems to have solved the tooltip problem.

Hopefully the core idea here helps someone:- Some tool that manipulates the Aero overlay may be interfering.

Jotham

Posted 2009-10-18T17:31:11.937

Reputation: 438

I have SetPoint also, seems to interfere with Aero, thanks! – Hernán – 2015-03-16T14:34:16.847

0

If you're using Windows 10, you may be unable to kill dwm.exe without being forced to shutdown/restart Windows as I was.

To prevent this issue in the future, I followed this answer, but to fix the problem I had at the moment, I just changed my resolution, then reverted back to my original resolution, which erased the menu item which had been stuck on the screen.

Will Ediger

Posted 2009-10-18T17:31:11.937

Reputation: 133

I'm using Windows 10 17134, and killing dwm.exe works. However the ghost will just come back soon for a new menu item... – FrankHB – 2020-02-05T13:04:07.770

0

I used to get this quite a lot on my home system, running XPPro, along with tool-tip boxes doing the same. Windows Explorer was the app that exposed the oddity most (though that might be because it is on of the utilities most commonly used). Closing/killing applications, as in your case, did nothing but flipping screen resolutions or colour depths did. Also switching to the login screen then logging back in would usually, but not always, do the trick.

I happens very rarely now, though I'm not sure what has changed to reduce the occurrence. I have recently upgraded the graphics card in the machine, but the reduction in occurrence happened noticably before that upgrade took place. My guess is that either a driver update or one of MS's patches has reduced the problem, but that is only a guess. In any case, make sure that you have not missed any updates and make sure you are running the latest stable drivers for your graphics chipset.

David Spillett

Posted 2009-10-18T17:31:11.937

Reputation: 22 424

0

The "Rotate to normal" hotkey CTRL + ALT + UpArrow can be used to clear the stuck menu, if your graphics card driver supports it.

(I know for a fact this works with Intel graphics, but can't vouch for any others.)

benrwb

Posted 2009-10-18T17:31:11.937

Reputation: 131

Doesn't work for me. – Andreas Rejbrand – 2014-01-13T00:47:49.233

@AndreasRejbrand I have updated my answer to be more specific – benrwb – 2014-01-13T13:46:34.457

@benrwd: OK, I see, it's a feature of some video graphics drivers. Well, it certainly is a shortcut for those with this hotkey. (But I suppose the fix is only temporary -- the next time you click a native Win32 popup menu item, it will stick again?) – Andreas Rejbrand – 2014-01-13T14:11:06.253

1@AndreasRejbrand Yes it is only a temporary fix, the best solution is to disable the "Fade out Menu Items after clicking" setting as detailed in other answers. – benrwb – 2014-01-15T07:57:17.087

1This is a default hotkey on Intel integrated graphics drivers, although it's often disabled because people hit it accidentally and then don't know how to change it back. – nullability – 2014-02-05T19:31:39.687

0

You can use the taskkill command:

  1. Open Command Prompt
  2. Type taskkill /im dwm.exe and then press Enter.

"taskkill" Command

If it happens regularly, you can also save the command in a batch file.

Dog Lover

Posted 2009-10-18T17:31:11.937

Reputation: 334