mirror of
https://github.com/gryf/wmaker.git
synced 2026-11-23 16:06:55 +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:
1 parent
f89cf06299
commit
67a9ea74a3
12 files changed
+325
-1532
No files matched your search
+9
-12
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user