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:
Uli Schlachter 2009-04-10 20:23:43 +02:00 committed by Julien Danjou
parent 99a8dbeaf7
commit 4574d87988
1 changed files with 0 additions and 3 deletions

View File

@ -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);