The i3 FAQ has migrated to All content here is read-only.
Ask Your Question

How to deal with the window that can not be closed by mod+shift+q

asked 2013-10-09 23:34:03 +0000

diablo465 gravatar image

updated 2013-10-10 10:18:31 +0000

I found there is a small window floating at the corner of the screen. this window is not working properly as it always displays part of contents in other windows. I don't remember which app opens this up as the computer has been on for weeks. This window can not be closed by mod+shift +q. of course we can just leave it there but do you know if there is any way to close such stubborn window?

Thanks in advance!

edit retag flag offensive close merge delete


Are you sure it's actually a window and not just an artifact left by some kind of bug?

BatmanAoD gravatar imageBatmanAoD ( 2013-10-10 16:19:11 +0000 )edit

I frequently get this for Wine system tray icons. KeePass for example creates such windows, when I change monitor configuration with xrandr

lkraav gravatar imagelkraav ( 2013-10-10 21:54:11 +0000 )edit

@BatmanAoD It could be left by some kind of bug, as it doesn't function properly. but I wonder if there are ways to deal with these bug windows.

diablo465 gravatar imagediablo465 ( 2013-10-10 22:39:04 +0000 )edit

My point in asking was that it might not be a window at all, in which case the wm (be it i3 or anything else) might not even be aware of it. Does it remain in place when you switch to a new workspace on the same screen?

BatmanAoD gravatar imageBatmanAoD ( 2013-10-11 16:17:59 +0000 )edit

Actually, since it's a "floating" window, can you move it with click&drag? If not, my guess is that it's **definitely** not a real window.

BatmanAoD gravatar imageBatmanAoD ( 2013-10-11 17:55:58 +0000 )edit

4 answers

Sort by ยป oldest newest most voted

answered 2013-10-09 23:41:13 +0000

vandannen gravatar image

try xkill, it allows to force close an x window.

edit flag offensive delete link more


Thanks for reply, I tried to use **xkill** but the window can not be selected after activating the xkill command, no matter the stubborn window is in tiling form or floating form. but xkill can close other normal windows in my system.

diablo465 gravatar imagediablo465 ( 2013-10-10 00:53:15 +0000 )edit

@diablo465 can you use `xprop` on the window? If so, maybe you can use `xkill -id <something>` to kill it?

BatmanAoD gravatar imageBatmanAoD ( 2013-10-14 15:58:51 +0000 )edit

@BatmanAoD here is result after using xprop to that window: WM_NAME(STRING) = "[i3 con] floatingcon around 0x19cd330". the result is completely different from other windows. I can not find the pid of the window that is why it is not possible to use xkill or kill to close it.

diablo465 gravatar imagediablo465 ( 2013-10-14 22:53:25 +0000 )edit

answered 2014-03-09 06:20:44 +0000

kernc gravatar image

updated 2014-03-09 06:21:32 +0000

I was able to kill such a window (remnant of something wine) with xwininfo -all to determine the process id, then killing that process and associated processes with command line C:\windows\....

edit flag offensive delete link more

answered 2013-10-10 16:19:46 +0000

Michael gravatar image

Try restarting i3 (i3 restart or Mod+Shift+R I think), then killing the window using Mod+Shift+Q or xkill.

edit flag offensive delete link more


Thanks for reply, I tried according but no luck.

diablo465 gravatar imagediablo465 ( 2013-10-10 22:36:00 +0000 )edit

answered 2015-06-10 22:35:30 +0000

From the above post:

Use xwininfo (and click on the offending window) or use -all and find it

Then use xkill -id [window id from xwininfo]

That will do away with even the most persistent pests....

edit flag offensive delete link more

Question Tools


Asked: 2013-10-09 23:34:03 +0000

Seen: 2,692 times

Last updated: Jun 10