mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
drawin: Use numbers rather than integers
This solve issues when using wibox with `awful.placement`
This commit is contained in:
parent
7c7295a282
commit
167f5e2821
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue