-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Am 29.05.2010 20:01, Perry Hargrave wrote:
> +--- Find a suitable fallback tag.
> +-- @param screen The screen number to look for a tag on. [mouse.screen]
> +-- @param target A table of tags we consider unacceptable. [{selected()}]
> +function find_fallback(screen, invalids)
> + local scr = screen or capi.mouse.screen
> + local t = invalids or {selected()}
I'd propose:
local t = invalids or selectedlist(scr)
> +
> + for _, v in pairs(capi.screen[scr]:tags()) do
> + if not util.table.hasitem(t, v) then return v end
> + end
> +end
> +
Besides that, I like the idea. You got my "+1". :)
Uli
- --
- - Buck, when, exactly, did you lose your mind?
- - Three months ago. I woke up one morning married to a pineapple.
An ugly pineapple... But I loved her!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iQEcBAEBCAAGBQJMAjzfAAoJECLkKOvLj8sGWC8IAI11ZiPS2ymZL5xCUzmovmAw
//2Z4Ng47KGzVSse4hLIU3v4YfgakSrjCDUgbox/jdIBs3REPhqE8hK6U5ICchs2
q7HUsD6/T1nmNT43Xpbq7YG9XIoMBZw4LjHmjEdW7KmTubVlZ5Y0AA28b9UFVwJz
PzvE6VUne9IMXLEgfZ2JIBjn4xrPsT/ScAUFWVeq3wi7GusmG6UW214pB93sZ3gN
jqHKIWW+t5Tx0Ng/dMBvvFZGHuJk/2OcB8VGgHG2OJgWrghpSnZ+yO7uGnqVkHx0
Hk7Rxic0bHJnRifuRLqlQm0Nk+/kr96JgqLt59g9J3JQ/O5VG9CRvR/eTPR6Fpo=
=oQTg
-----END PGP SIGNATURE-----
--
To unsubscribe, send mail to [email protected].