-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Am 05.01.2011 20:20, beo wulf wrote:
> I'm on 3.4.8

Modifying tasklist won't work, that code just makes the tasklist update. When
you remove that, the text will still change once e.g. the next client opens.

No idea if this works and too lazy to test right now, sorry:

local data = setmetatable({}, { __mode = 'k' })
client.add_signal("new", function(c)
  c:add_signal("property::name", function ()
    if data[c] and data[c] ~= c.name then
      c.name = data[c]
    else
      data[c] = c.name
    end
  end
end)

The idea here is to remember the right name for a client. When a different name
is set, this re-sets the name that we already know. If none is known, we
remember the current name.

Good luck,
Uli

- -- 
The Angels have the phone box!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAEBCAAGBQJNJNHXAAoJECLkKOvLj8sGSnEIALZ28oQetmkotUnVDl5PIcNr
mj0++H+eu9oUQcX68W5iNqLThhG4b5TuLpDKVQcTESfmZQ5LqIh+tVGwuREwcv15
Ouc3Qk/Pt4YW2+OSsW50Oq2VeZTgMkbNWgHIKF3eBo1l0PVTbxgPxXnal+XbTCed
qUQfQbBuS9mgkvrYEoN9N1nsbh1491V4JO03Lhk2iiUxOdOlmr3kr2HJ7txYliy2
SgLsf/b95yfi0VAkr7DuToP6vVgSuRwo/Qzw5FRIL0Cqc2UanieCW4hPazDA+apG
Jqt1QAKw8jZbhvkn8exqiCPf61wWN11San4dgshGBo2cC/gIv4VuZL37J4AIeg0=
=iJ62
-----END PGP SIGNATURE-----

-- 
To unsubscribe, send mail to [email protected].

Reply via email to