awful.wibox: sanitize height/width args to function new()
commit9038c5165d22fe69fbbf6392361b0155fd0c6484
authorAdrian C. (anrxc) <anrxc@sysphere.org>
Mon, 4 Jan 2010 22:37:16 +0000 (4 23:37 +0100)
committerJulien Danjou <julien@danjou.info>
Tue, 5 Jan 2010 08:53:14 +0000 (5 09:53 +0100)
treea84e297271d00816a90e4795b05b953912269cea
parentb24348219e9a63db12e3074b3b2cc13019e47e0b
awful.wibox: sanitize height/width args to function new()

When both height and width arguments are provided to the function
new() there is a check to see if one of them was a screen percentage,
and is expected to be a string. If the user provided absolute pixels,
and argument is of type number awesome will crash. Now tostring is
used to sanitize the arguments during this check.

Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
lib/awful/wibox.lua.in