From 6e02b71f1d6c2f21cf283c9313f6acac1c646a5d Mon Sep 17 00:00:00 2001 From: devilhorns Date: Tue, 31 May 2011 19:28:30 +0000 Subject: [PATCH] Ecore_X: Fix building without shape extension (rects was undefined, as was the variable i). git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@59854 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_x/xlib/ecore_x_window_shape.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/ecore_x/xlib/ecore_x_window_shape.c b/src/lib/ecore_x/xlib/ecore_x_window_shape.c index 51c2010..6bbc864 100644 --- a/src/lib/ecore_x/xlib/ecore_x_window_shape.c +++ b/src/lib/ecore_x/xlib/ecore_x_window_shape.c @@ -585,9 +585,9 @@ ecore_x_window_shape_rectangles_get(Ecore_X_Window win, int *num_ret) EAPI Ecore_X_Rectangle * ecore_x_window_shape_input_rectangles_get(Ecore_X_Window win, int *num_ret) { + Ecore_X_Rectangle *rects = NULL; #ifdef ShapeInput XRectangle *rect; - Ecore_X_Rectangle *rects = NULL; int i, num = 0, ord; LOGFN(__FILE__, __LINE__, __FUNCTION__); @@ -627,8 +627,8 @@ ecore_x_window_shape_input_rectangles_get(Ecore_X_Window win, int *num_ret) rects = malloc(sizeof(Ecore_X_Rectangle)); if (!rects) return NULL; if (!XGetGeometry(_ecore_x_disp, win, &dw, - &(rects[i].x), &(rects[i].y), - &(rects[i].width), &(rects[i].height), + &(rects[0].x), &(rects[0].y), + &(rects[0].width), &(rects[0].height), &di, &di)) { free(rects); -- 2.7.4