drawin: Correctly set window shape

Thanks to "rnoway" (aka Arnaud?) for noticing my typo.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2012-11-06 20:43:05 +01:00
parent 37d074f881
commit dac95db79b
1 changed files with 2 additions and 2 deletions

View File

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