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

New created windows steal focus, how to keep focus on active?

asked Oct 25 '12

lkraav gravatar image

This scenario happens on mostly system startup, where autostart launches like 10 apps in parallel. Let's say I'd like to close some immediately with mod4-shift-c. Problem is that at any given point some other window might pop up, steal focus and receive mod4-shift-c instead of the window I intended it for.

How to solve this? Not seeing an applicable setting in docs.

Comments

1 answer

Sort by » oldest newest most voted
0

answered Oct 25 '12

Michael gravatar image

You can’t currently. Also note that if i3 wouldn’t focus these windows, they could steal focus themselves (and some do) — that’s an unsolvable X11 problem.

Comments

I see that popup windows don't steal focus under Ubuntu Unity. So IntelliJ Idea is working perfectly. Why i3wm can't perform like Unity in such case? (My original question was https://faq.i3wm.org/question/2097/how-to-prevent-popup-window-focus-steal/)

sergej gravatar imagesergej (Jun 27 '13)edit

I made a small code change that works for me: http://pastebin.com/7wC7w6sZ. I'm fine with applications still being able to rip focus from me if they really want to, but this will at least prevent me from typing my password in a wrong window when it something pops up (often). An option would be nice!

nh2 gravatar imagenh2 (Aug 28 '13)edit

Question Tools

Stats

Asked: Oct 25 '12

Seen: 1,569 times

Last updated: Oct 25 '12