wibox: fix border_width handling with transparent bg (FS#647)

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-10-09 16:13:01 +02:00
parent 9a9c3d12d7
commit d3464ce7fc
2 changed files with 4 additions and 1 deletions

View File

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

View File

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