From 832734d4ec2f25256cebe34e065333f83e2a8ab8 Mon Sep 17 00:00:00 2001 From: Kim Woelders Date: Mon, 14 Jan 2008 21:48:12 +0000 Subject: [PATCH] Use wrapper function (XGetGeometry->EXGetGeometry). SVN revision: 33489 --- src/icons.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/icons.c b/src/icons.c index 279ba09d..71c9ea91 100644 --- a/src/icons.c +++ b/src/icons.c @@ -131,13 +131,13 @@ static EImage * IB_GetAppIcon(EWin * ewin, int size) { /* Get the applications icon pixmap/mask */ - int x, y; - unsigned int w, h, depth, bw; - Window rt; + int w, h; EImage *im; if (ewin->ewmh.wm_icon) { + int x; + x = NetwmIconFindBestSize(ewin->ewmh.wm_icon, ewin->ewmh.wm_icon_len, size); if (x >= 0) @@ -155,7 +155,7 @@ IB_GetAppIcon(EWin * ewin, int size) w = 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) return NULL;