Hi all,
I have this function which should toggle the tag i of screen scr to the
currently focussed client.
--8<---------------cut here---------------start------------->8---
function add_client_tag_by_number (i, scr)
if not scr then
scr = client.focus.screen
end
if client.focus and tags[scr][i] then
io.write("Adding client to tag ", i, " on screen ", scr, "\n")
io.flush()
awful.client.toggletag(tags[scr][i], client.focus)
end
end
--8<---------------cut here---------------end--------------->8---
It does work if scr is not given and so the screen of the currently
focussed client is used. But when trying to tag the client with a tag
on another screen, it does nothing.
Let's say I'm on screen 1 add tag 2 to the current client, then
Adding client to tag 2 on screen 1
is written to stdout. When I call the function to add tag 2 on screen 2
to the client, I get
Adding client to tag 2 on screen 2
so my function seems to do the right thing and there's a bug in
awful.client.toggletag(). I use 3.4_rc4.
Bye,
Tassilo
--
To unsubscribe, send mail to [email protected].