1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-15 21:45:54 +01:00

- Fixed wrong call to XChangeProperty() when setting _NET_WM_ICON

- Changed the WPrefs icons with Largo's version
- Replaced Apps with Application in the docs
This commit is contained in:
dan
2004-10-24 03:20:29 +00:00
parent f89cf06299
commit 67a9ea74a3
12 changed files with 325 additions and 1532 deletions

View File

@@ -257,13 +257,11 @@ setMiniwindow(WMWindow *win, RImage *image)
CARD32 *data;
int x, y;
int o;
if (!image)
return;
data= malloc((image->width * image->height + 2) * sizeof(CARD32));
if (!data)
return;
data = wmalloc((image->width * image->height + 2) * sizeof(CARD32));
o= 0;
data[o++] = image->width;
@@ -283,13 +281,12 @@ setMiniwindow(WMWindow *win, RImage *image)
}
}
XChangeProperty(scr->display, win->view->window,
scr->netwmIcon, XA_CARDINAL, 32,
PropModeReplace,
(unsigned char *)data,
(image->width * image->height + 2) * sizeof(CARD32));
free(data);
XChangeProperty(scr->display, win->view->window, scr->netwmIcon,
XA_CARDINAL, 32, PropModeReplace,
(unsigned char *)data,
(image->width * image->height + 2));
wfree(data);
}