On Mon, Aug 30, 2021 at 07:14:38PM -0700, Miguel Rodriguez wrote:
> 
> In summary an as an example: If I spawn Firefox in the group "1" and move 
> the screen focus or switch to the workspace "2", Firefox will appear in the 
> "2" group and not in the group "1" where it was called from.
> I would appreciate so much if someone knows how to avoid this non desired 
> behavior, I looked in the documentation but could no find the reference 
> that could solve my problem.
> Thanks in advance for your time and for reading. :)

X11's solution to this sort of thing is NET_WM_PID, but it is not
bullet proof (e.g. if firefox fork()s and uses a different pid to draw
the window, we can't really figure that out).

However, there is some basic code for NET_WM_PID handling in
libqtile/dgroups.py:_setup_groups() for groups that have spawn=
arguments. You can presumably adapt this for your usecase via a
lazy.function() or similar.

Tycho

-- 
You received this message because you are subscribed to the Google Groups 
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qtile-dev/YS/sMsCHaxWR1pvp%40cisco.

Reply via email to