From d5e5ae6ca0099de103c1ca9440a6cc49769fda93 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Wed, 31 Oct 2012 22:44:22 +0100 Subject: [PATCH] getSize returns XGetGeometry exit The function getSize now returns the returned value by XGetGeometry. The function now is not INLINE. --- src/icon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/icon.c b/src/icon.c index f693e77f..db726e47 100644 --- a/src/icon.c +++ b/src/icon.c @@ -97,13 +97,13 @@ static void tileObserver(void *self, WMNotification * notif) /************************************/ -INLINE static void getSize(Drawable d, unsigned int *w, unsigned int *h, unsigned int *dep) +static int getSize(Drawable d, unsigned int *w, unsigned int *h, unsigned int *dep) { Window rjunk; int xjunk, yjunk; unsigned int bjunk; - XGetGeometry(dpy, d, &rjunk, &xjunk, &yjunk, w, h, &bjunk, dep); + return XGetGeometry(dpy, d, &rjunk, &xjunk, &yjunk, w, h, &bjunk, dep); } WIcon *icon_create_for_wwindow(WWindow *wwin) -- 2.11.4.GIT