Don't update a wibox' position when it is created
For a floating wibox which isn't visible, all what wibox_position_update() does is setting the geometry fields in the simplewindow struct. Since the next thing luaA_wibox_new() does is setting the wibox' geometry, this call makes no sense. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
99a8dbeaf7
commit
4574d87988
3
wibox.c
3
wibox.c
|
@ -732,9 +732,6 @@ luaA_wibox_new(lua_State *L)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* recompute position */
|
|
||||||
wibox_position_update(w);
|
|
||||||
|
|
||||||
w->sw.geometry.x = luaA_getopt_number(L, 2, "x", 0);
|
w->sw.geometry.x = luaA_getopt_number(L, 2, "x", 0);
|
||||||
w->sw.geometry.y = luaA_getopt_number(L, 2, "y", 0);
|
w->sw.geometry.y = luaA_getopt_number(L, 2, "y", 0);
|
||||||
w->sw.geometry.width = luaA_getopt_number(L, 2, "width", 0);
|
w->sw.geometry.width = luaA_getopt_number(L, 2, "width", 0);
|
||||||
|
|
Loading…
Reference in New Issue