On Wed, Aug 19, 2020 at 11:37:28AM -0700, Anthony Vo wrote:
> From the doc, if we want to do something like that, we can define a
> function with the decorator @hook.subscribe.client_new and do something like
>
> >>>> @hook.subscribe.client_new
> >>>> def move_spawned_apps(client):
> >>>> client.togroup("a", switch_group=True)
>
> The switch_group=True argument is for switching to that group. This works
> for whenever we're in a different group. For example, say I'm currently in
> group "b" and want to spawn every applications in group "a". Then the piece
> of code above does that. However, if I was in group "b", and switch to
> group "a" using `lazy.group["a"].toscreen(toggle=False)`, and then try to
> spawn applications, then the application is still spawned in group "a", but
> now my focus is switched back to group "b". In summary, it works whenever
> I'm in a different group from "a", but when I'm already in the same group,
> then the code opens the application in "a" but switches my focus to
> whatever group I was in before this. How do I fix this?
I think this is a bug fixed by:
https://github.com/qtile/qtile/pull/1827
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/20200819185141.GN1146532%40cisco.