}
xcb_shape_rectangles(_ecore_xcb_conn, XCB_SHAPE_SO_SET,
XCB_SHAPE_SK_BOUNDING, XCB_CLIP_ORDERING_UNSORTED,
- win, 0, 0, num, (xcb_rectangle_t *)&rect);
+ win, 0, 0, num, (xcb_rectangle_t *)rect);
if (rect) free(rect);
#else
}
xcb_shape_rectangles(_ecore_xcb_conn, XCB_SHAPE_SO_SET,
XCB_SHAPE_SK_INPUT, XCB_CLIP_ORDERING_UNSORTED,
- win, 0, 0, num, (xcb_rectangle_t *)&rect);
+ win, 0, 0, num, (xcb_rectangle_t *)rect);
if (rect) free(rect);
#else
EAPI void
ecore_x_window_shape_input_rectangle_set(Ecore_X_Window win, int x, int y, int w, int h)
{
- LOGFN(__FILE__, __LINE__, __FUNCTION__);
-
#ifdef ECORE_XCB_SHAPE
xcb_rectangle_t rect;
+#endif
+
+ LOGFN(__FILE__, __LINE__, __FUNCTION__);
+#ifdef ECORE_XCB_SHAPE
rect.x = x;
rect.y = y;
rect.width = w;