1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-23 22:52:34 +01:00

getSize returns XGetGeometry exit

The function getSize now returns the returned value by XGetGeometry.
The function now is not INLINE.
This commit is contained in:
Rodolfo García Peñas (kix)
2012-10-31 22:44:22 +01:00
committed by Carlos R. Mafra
parent df4141236b
commit d5e5ae6ca0

View File

@@ -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)