Add a "deep" option to awful.util.table.clone
commit11f7b5aa3d35a215209e4b59d60b174864e007e8
authorDaniel Hahler <git@thequod.de>
Fri, 14 Mar 2014 16:10:24 +0000 (14 17:10 +0100)
committerUli Schlachter <psychon@znc.in>
Fri, 14 Mar 2014 19:36:26 +0000 (14 20:36 +0100)
tree85bbed0d904e8617be837bc2ecbcdf184fb2d9c0
parentb1c14d56608624f7dd77affa3833b9dd963e9c95
Add a "deep" option to awful.util.table.clone

This allows for having clones of a table, where its entries are still
references to the original values.

This is useful for copying a "default props" table, where you want to
keep the reference to entries like `awful.layout.suit.tile`.

Signed-off-by: Daniel Hahler <git@thequod.de>
lib/awful/util.lua.in