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

automatically move focus back to tiling when floating window is closed

asked 2015-10-01 18:13:23 +0000

kyra gravatar image

updated 2015-10-02 18:32:24 +0000

Often times I have a floating window on a workspace while the rest of the screen is tiled. When I open a new dialogue (open/save file, ect.) the focus is shifted to the new floating window as it should.

However when I close the window (say I chose to open a file) the focus stays in 'floating window mode' and switches to the original floating window.

So every time I want to open a file I have to switch the focus back to the tiling again.

Is there a way of configuring i3 in a way that the focus doesn't stay on a floating window if this window is closed?


I observe this only when I close a tiling window via a floating dialog-box (e.g. are you sure to close ..). I guess what happens is, the focus wants to jump back to the tiling window it came from, but since this window doesn't exist anymore (since it is closed now as well) it jumps to the next floating window. I think it would feel way more natural, if it jumped back to a tiling window.

Does anyone have an idea how to achieve that?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2015-10-01 18:25:55 +0000

Airblader gravatar image

No, this shouldn't be the case in the first place. What i3 does is it keeps a list of the order in which you focused windows and if the currently focused window is closed, it falls back to the previously focused window – whether it was floating or tiled doesn't matter.

If you focus a tiled window, open the dialog and it focuses a floating window after the dialog closes, you'll need to provide step by step instructions of what you're doing and with which applications for us to reproduce. With terminals it works as expected for me.

edit flag offensive delete link more


hm strange, I am not able to reproduce this behavior anymore.. I will keep an eye open under which circumstances/if it occurs again.. Thanks (can't upvote yet, to little karma)

kyra gravatar imagekyra ( 2015-10-01 22:29:21 +0000 )edit

I was able to reproduce it! It happens when closing a tiling window via a dialog box (see edit in my question).

kyra gravatar imagekyra ( 2015-10-02 18:33:48 +0000 )edit

I can reproduce the kind of behavior I think is taking place here. I'm unsure about this. I will open a report on Github and see what Michael thinks about it.

Airblader gravatar imageAirblader ( 2015-10-02 19:32:04 +0000 )edit

Airblader gravatar imageAirblader ( 2015-10-02 19:36:17 +0000 )edit

Question Tools

1 follower


Asked: 2015-10-01 18:13:23 +0000

Seen: 174 times

Last updated: Oct 02