[i3-discuss] Re: Preventing focus

  • From: Jeff Abrahamson <jeff@xxxxxx>
  • To: i3-discuss@xxxxxxxxxxxxx
  • Date: Mon, 16 Jul 2018 09:07:57 +0200

Thanks, Ingo.  I hadn't thought of that, but it's a good option and it
solves the immediate issue.  So far I can't think of instances where I
don't want the "urgent" setting anyway, so this may work out doubly well.

Jeff


On 16/07/18 08:59, Ingo Bürk wrote:

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.


-- 

Jeff Abrahamson
+33 6 24 40 01 57
+44 7920 594 255

http://p27.eu/jeff/


Other related posts: