Use wrapper function (XGetGeometry->EXGetGeometry).
SVN revision: 33489
This commit is contained in:
parent
a60aeca908
commit
832734d4ec
|
@ -131,13 +131,13 @@ static EImage *
|
||||||
IB_GetAppIcon(EWin * ewin, int size)
|
IB_GetAppIcon(EWin * ewin, int size)
|
||||||
{
|
{
|
||||||
/* Get the applications icon pixmap/mask */
|
/* Get the applications icon pixmap/mask */
|
||||||
int x, y;
|
int w, h;
|
||||||
unsigned int w, h, depth, bw;
|
|
||||||
Window rt;
|
|
||||||
EImage *im;
|
EImage *im;
|
||||||
|
|
||||||
if (ewin->ewmh.wm_icon)
|
if (ewin->ewmh.wm_icon)
|
||||||
{
|
{
|
||||||
|
int x;
|
||||||
|
|
||||||
x = NetwmIconFindBestSize(ewin->ewmh.wm_icon, ewin->ewmh.wm_icon_len,
|
x = NetwmIconFindBestSize(ewin->ewmh.wm_icon, ewin->ewmh.wm_icon_len,
|
||||||
size);
|
size);
|
||||||
if (x >= 0)
|
if (x >= 0)
|
||||||
|
@ -155,7 +155,7 @@ IB_GetAppIcon(EWin * ewin, int size)
|
||||||
|
|
||||||
w = 0;
|
w = 0;
|
||||||
h = 0;
|
h = 0;
|
||||||
XGetGeometry(disp, ewin->icccm.icon_pmap, &rt, &x, &y, &w, &h, &bw, &depth);
|
EXGetGeometry(ewin->icccm.icon_pmap, NULL, NULL, NULL, &w, &h, NULL, NULL);
|
||||||
|
|
||||||
if (w < 1 || h < 1)
|
if (w < 1 || h < 1)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue