Try this:
@hook.subscribe.client_managed
def show_window(window):
window.group.cmd_toscreen()
I found that client_managed is needed instead of client_new, because when a
client_new
hook is called, window.group is usually None. Big thanks svig_lab_ on irc!
I'm relatively to the qtile and spent a lot of time trying to figure out
how to call something. Feel free to correct me if I did something wrong.
Cheers
On Monday, 2 November 2015 02:05:22 UTC+8, Martin Morez wrote:
>
> Qtile does not auto_focus window group when a window is created, and i
> would do this for some clients.
> So i tried this hook :
> @hook.subscribe.client_new
> def auto_focus(window):
> window.group.focus(window)
>
> it doesn't seem to work, can someone help me ?
> thanks a lot
>
>
>
--
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].
For more options, visit https://groups.google.com/d/optout.