[i3-discuss] Re: Preventing focus

  • From: Ingo Bürk <admin@xxxxxxxxxxxx>
  • To: i3-discuss@xxxxxxxxxxxxx, Jeff Abrahamson <jeff@xxxxxx>
  • Date: Mon, 16 Jul 2018 08:59:26 +0200

Hi,

assuming it's an activation request, you can use
focus_on_window_activation[1].
However, this is global and not per-window. There's also no_focus (which
is per-window), but this only applies to newly mapped windows which I
understand isn't your case.

[1] https://i3wm.org/docs/userguide.html#focus_on_window_activation


Regards
Ingo

On 07/16/2018 08:49 AM, Jeff Abrahamson wrote:

Is there a way to request i3 to ignore focus requests from a specific
window (or process)?

The context is the image viewer geeqie, which I drive from other
programs to aid in certain image automation tasks.  It's taken to
focusing itself when asked to load an image (probably via
gtk_widget_grab_focus() based on scanning its code, but I'm not sure how
to verify that besides a long-ish gdb session).  If I could simply tell
i3 to ignore that request, that would be faster than adapting geeqie or
another program to do what I want.



Other related posts: