From dac95db79b01412cdbd056929700492ee46729ed Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Tue, 6 Nov 2012 20:43:05 +0100 Subject: [PATCH] drawin: Correctly set window shape Thanks to "rnoway" (aka Arnaud?) for noticing my typo. Signed-off-by: Uli Schlachter --- objects/drawin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/objects/drawin.c b/objects/drawin.c index 437540551..f290c372f 100644 --- a/objects/drawin.c +++ b/objects/drawin.c @@ -548,7 +548,7 @@ luaA_drawin_set_shape_bounding(lua_State *L, drawin_t *drawin) cairo_surface_t *surf = NULL; if(!lua_isnil(L, -1)) surf = (cairo_surface_t *)lua_touserdata(L, -1); - xwindow_set_shape(drawin->window, drawin->geometry.width, drawin->geometry.width, + xwindow_set_shape(drawin->window, drawin->geometry.width, drawin->geometry.height, XCB_SHAPE_SK_BOUNDING, surf, -drawin->border_width); return 0; } @@ -564,7 +564,7 @@ luaA_drawin_set_shape_clip(lua_State *L, drawin_t *drawin) cairo_surface_t *surf = NULL; if(!lua_isnil(L, -1)) surf = (cairo_surface_t *)lua_touserdata(L, -1); - xwindow_set_shape(drawin->window, drawin->geometry.width, drawin->geometry.width, + xwindow_set_shape(drawin->window, drawin->geometry.width, drawin->geometry.height, XCB_SHAPE_SK_CLIP, surf, 0); return 0; }