From: Rodolfo García Peñas (kix) Date: Wed, 31 Oct 2012 21:44:22 +0000 (+0100) Subject: getSize returns XGetGeometry exit X-Git-Tag: wmaker-0.95.4~73 X-Git-Url: https://repo.or.cz/w/wmaker-crm.git/commitdiff_plain/d5e5ae6ca0099de103c1ca9440a6cc49769fda93 getSize returns XGetGeometry exit The function getSize now returns the returned value by XGetGeometry. The function now is not INLINE. --- 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)