Skip to content

Instantly share code, notes, and snippets.

@blueyed
Created January 10, 2015 16:51
Show Gist options
  • Save blueyed/2f26f008afe701f21cae to your computer and use it in GitHub Desktop.
Save blueyed/2f26f008afe701f21cae to your computer and use it in GitHub Desktop.
function awful.client.istransientfor(c, parent)
local cur = c
while cur.transient_for do
if cur.transient_for == parent then
return true
end
cur = cur.transient_for
end
return false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment