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:
committed by
Carlos R. Mafra
parent
df4141236b
commit
d5e5ae6ca0
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user