The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

Window does not disappear when closing app

asked 2015-04-22 23:38:49 +0000

mickkelo gravatar image

updated 2015-04-23 06:33:09 +0000

Adaephon gravatar image

Hi, When I close Chrome using $mod+Shift+q, the app remains at the screen but it doesn't disappear until I move to another desktop. Is that a normal behaviour? Thanks

edit retag flag offensive close merge delete

Comments

No, it's not. Does this happen with any other application?

airblader gravatar imageairblader ( 2015-04-23 03:47:22 +0000 )edit

It sounds as if the root window ("background") is not redrawn. Do you set a background color or image? And does the problem persist if you run `xsetroot -gray`?

Adaephon gravatar imageAdaephon ( 2015-04-23 06:31:01 +0000 )edit

It happens with all the applications too. And I haven't change the background color or image, is the behaviour I encountered when i3 was installed, without tweaking it.

mickkelo gravatar imagemickkelo ( 2015-04-23 10:19:22 +0000 )edit

could this be a graphics driver issue?

airblader gravatar imageairblader ( 2015-04-23 10:38:15 +0000 )edit

My graphic card is an Intel card (typical for laptops), do I need a special thing to do?

mickkelo gravatar imagemickkelo ( 2015-04-23 10:42:20 +0000 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2015-04-23 15:05:07 +0000

mickkelo gravatar image

ok, seems adding:

xsetroot -gray

to my .profile solves the problem.

edit flag offensive delete link more
1

answered 2015-04-24 05:58:37 +0000

Adaephon gravatar image

As setting a background seems to solve the problem, you can just put

exec --no-startup-id xsetroot -gray

into your ~/.i3/config and it will be run when i3 starts up.

Of course you can use any other command that sets a background color, pattern or image instead of xsetroot -gray.


The issue here was, that there was no content set for the root window (what is sometimes called desktop). Therefore when the last window on a workspace gets closed, i3 has nothing to draw for the root window (which then becomes visible) and an image of the last window remains. And it is just an image, the application itself terminated successfully and the actual window was closed.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2015-04-22 23:38:49 +0000

Seen: 189 times

Last updated: Apr 24