From 882099f9001148eb4459c4ccb2c9bad2b774106f Mon Sep 17 00:00:00 2001 From: Jeremy Bethmont Date: Mon, 12 Nov 2012 17:20:11 +0100 Subject: [PATCH] Fixed bounding shape size to take into account border size. Signed-off-by: Uli Schlachter --- objects/client.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/objects/client.c b/objects/client.c index 9026f9733..4f912d893 100644 --- a/objects/client.c +++ b/objects/client.c @@ -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; }