Mercurial > mplayer.hg
diff gui/wm/ws.c @ 33542:107084241b00
Add support for _NET_WM_ICON
This property will allow the window manager to select
from differently sized icons.
It is a preparation for this feature to come.
author | ib |
---|---|
date | Thu, 16 Jun 2011 14:50:24 +0000 |
parents | 729826b857cf |
children | 10f9498fada1 |
line wrap: on
line diff
--- a/gui/wm/ws.c Thu Jun 16 13:09:52 2011 +0000 +++ b/gui/wm/ws.c Thu Jun 16 14:50:24 2011 +0000 @@ -1554,4 +1554,9 @@ data[1] = icon->normal_mask; XChangeProperty(dsp, win, iconatom, iconatom, 32, PropModeReplace, (unsigned char *)data, 2); + + if (icon->collection) { + iconatom = XInternAtom(dsp, "_NET_WM_ICON", False); + XChangeProperty(dsp, win, iconatom, XA_CARDINAL, 32, PropModeReplace, (unsigned char *)icon->collection, icon->collection_size); + } }