Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Sometimes there's a leftover window in the bottom right area of the screen. It's transparent (invisible), but it will not let me click windows underneath it. I know it's there, after I verified with xwininfo (I can get the id of this window).

So my question is: how can I destroy this window (so that I won't have to restart/logout to get rid of it)?

More details: there was a command to get the owner process of a window but I can't remember it right now. However, I did try it, and couldn't retrieve a process. Likely, the window is orphaned. So I just need an X specific way to destroy the window as the owner process likely no longer exists.

share|improve this question
If this happens with Ubuntu 11.04 in a Unity or a classic session with Compiz/effects, you might be interested in following this bug. – htorque May 16 '11 at 11:22
up vote 3 down vote accepted

Have you tried xkill? Run that from a terminal or a run window, click the window and it should nuke it.

If it's a common issue, it might be worth making a desktop launcher so you can run xkill with a double-click. You can do that the normal way or just throw this into a terminal:

echo "[Desktop Entry]
Name=xkill" > ~/Desktop/xkill.desktop
share|improve this answer
Thanks, it worked. I'm not sure who created this window. Could have been something low-level like Unity or Compiz because after killing it the screen flashed a bit like some such low level component was reloading. Anyway, the system continued to work great afterwards. – user12681 May 16 '11 at 23:10
I believe it may be killing X or Compiz or Unity because the window is somehow orphaned. Will still look, maybe there's a way to destroy just the window and not the owner process. Feel free to write here if you have comments about what I just wrote. – user12681 May 21 '11 at 4:46

Run xkill and select the window.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.