Fallback to comparing layout names in awful.layout.inc
commit31e3399abeca0be72722819ddfc26840c2f9df5a
authorDaniel Hahler <git@thequod.de>
Fri, 14 Mar 2014 16:21:11 +0000 (14 17:21 +0100)
committerUli Schlachter <psychon@znc.in>
Fri, 14 Mar 2014 19:37:24 +0000 (14 20:37 +0100)
tree35c94f435e6fd3f263503bdf66cc79829efc5d85
parent11f7b5aa3d35a215209e4b59d60b174864e007e8
Fallback to comparing layout names in awful.layout.inc

This helps in cases where you have accidentally cloned an entry from
`layouts`.

Previously, no current index would be found and the function would
silently fail.

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