From 4574d879887496dd74b432ccfc4cffc2e4b435a6 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Fri, 10 Apr 2009 20:23:43 +0200 Subject: [PATCH] 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 --- wibox.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/wibox.c b/wibox.c index bcec0125..cc2a9940 100644 --- a/wibox.c +++ b/wibox.c @@ -732,9 +732,6 @@ luaA_wibox_new(lua_State *L) break; } - /* recompute position */ - wibox_position_update(w); - 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.width = luaA_getopt_number(L, 2, "width", 0);