diff --git a/wibox.c b/wibox.c index feb8403d..5f8ae846 100644 --- a/wibox.c +++ b/wibox.c @@ -1455,6 +1455,8 @@ luaA_wibox_set_border_width(lua_State *L, wibox_t *wibox) xcb_configure_window(globalconf.connection, w->window, XCB_CONFIG_WINDOW_BORDER_WIDTH, &border_width); w->border_width = border_width; + /* Need update if transparent background */ + wibox_need_update(w); luaA_object_emit_signal(L, -3, "property::border_width", 0); } return 0; diff --git a/widget.c b/widget.c index 0698e57d..74f8ae8c 100644 --- a/widget.c +++ b/widget.c @@ -249,7 +249,8 @@ widget_render(wibox_t *wibox) if(ctx->bg.alpha != 0xffff) { - int x = wibox->geometry.x, y = wibox->geometry.y; + int x = wibox->geometry.x + wibox->border_width, + y = wibox->geometry.y + wibox->border_width; xcb_get_property_reply_t *prop_r; char *data; xcb_pixmap_t rootpix;