drawin: Use numbers rather than integers
This solve issues when using wibox with `awful.placement`
This commit is contained in:
parent
7c7295a282
commit
167f5e2821
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue