From: "Rodolfo García Peñas (kix)" <[email protected]>
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 cb69b00..448332a 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)
--
1.7.10.4
--
To unsubscribe, send mail to [email protected].