Fixed bounding shape size to take into account border size.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Jeremy Bethmont 2012-11-12 17:20:11 +01:00 committed by Uli Schlachter
parent 6a6e49accd
commit 882099f900
1 changed files with 3 additions and 1 deletions

View File

@ -1857,7 +1857,9 @@ luaA_client_set_shape_bounding(lua_State *L, client_t *c)
cairo_surface_t *surf = NULL;
if(!lua_isnil(L, -1))
surf = (cairo_surface_t *)lua_touserdata(L, -1);
xwindow_set_shape(c->frame_window, c->geometry.width, c->geometry.height,
xwindow_set_shape(c->frame_window,
c->geometry.width + (c->border_width * 2),
c->geometry.height + (c->border_width * 2),
XCB_SHAPE_SK_BOUNDING, surf, -c->border_width);
return 0;
}