From 167f5e282111f59b067fbd0fba998894bbd319e8 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Fri, 4 Mar 2016 02:41:59 -0500 Subject: [PATCH] drawin: Use numbers rather than integers This solve issues when using wibox with `awful.placement` --- objects/drawin.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/objects/drawin.c b/objects/drawin.c index f4712144..25e6fc51 100644 --- a/objects/drawin.c +++ b/objects/drawin.c @@ -396,10 +396,10 @@ luaA_drawin_geometry(lua_State *L) area_t wingeom; luaA_checktable(L, 2); - wingeom.x = luaA_getopt_integer(L, 2, "x", drawin->geometry.x); - wingeom.y = luaA_getopt_integer(L, 2, "y", drawin->geometry.y); - wingeom.width = luaA_getopt_integer(L, 2, "width", drawin->geometry.width); - wingeom.height = luaA_getopt_integer(L, 2, "height", drawin->geometry.height); + wingeom.x = luaA_getopt_number(L, 2, "x", drawin->geometry.x); + wingeom.y = luaA_getopt_number(L, 2, "y", drawin->geometry.y); + wingeom.width = luaA_getopt_number(L, 2, "width", drawin->geometry.width); + wingeom.height = luaA_getopt_number(L, 2, "height", drawin->geometry.height); if(wingeom.width > 0 && wingeom.height > 0) drawin_moveresize(L, 1, wingeom);