Merge pull request #731 from Elv13/fix_awful_place

RFC awful.placement: Use math.ceil()
This commit is contained in:
Emmanuel Lepage Vallée 2016-03-04 04:13:43 -05:00
commit 9ee69ad8ad
1 changed files with 4 additions and 4 deletions

View File

@ -396,10 +396,10 @@ luaA_drawin_geometry(lua_State *L)
area_t wingeom; area_t wingeom;
luaA_checktable(L, 2); luaA_checktable(L, 2);
wingeom.x = luaA_getopt_integer(L, 2, "x", drawin->geometry.x); wingeom.x = luaA_getopt_number(L, 2, "x", drawin->geometry.x);
wingeom.y = luaA_getopt_integer(L, 2, "y", drawin->geometry.y); wingeom.y = luaA_getopt_number(L, 2, "y", drawin->geometry.y);
wingeom.width = luaA_getopt_integer(L, 2, "width", drawin->geometry.width); wingeom.width = luaA_getopt_number(L, 2, "width", drawin->geometry.width);
wingeom.height = luaA_getopt_integer(L, 2, "height", drawin->geometry.height); wingeom.height = luaA_getopt_number(L, 2, "height", drawin->geometry.height);
if(wingeom.width > 0 && wingeom.height > 0) if(wingeom.width > 0 && wingeom.height > 0)
drawin_moveresize(L, 1, wingeom); drawin_moveresize(L, 1, wingeom);