How can I change the taskbar icon using Fluxbox?
<p>I would like to change the images of a minimized window in the Fluxbox task bar.</p>

<p>I am currently using XIconifyWindow when the user clicks to minimize a window.
I need to somehow change the pixmap from the one that is loaded in the theme.cfg</p>

<p>Please note, that I do not want the change the applications icon, but the rectangle box that shows up in the toolbar. (some applications put their icon in that box)</p>

<p>The code I'm using to minimize looks something like this:</p>

<pre><code>void minWin(Window window, bool yes) const
{
  if(yes)
  {
    XIconifyWindow(display, window, DefaultScreen(display));
  }else{
    XMapWindow(display, window);
  }
}
</code></pre>

<p>So how would I put in some code to set the icon depending on some property?</p>

<p>Like </p>

<pre><code>if myProp == "green" set toolbar.iconbar.unfocused.color (or pixmap) to green
       else set it to red
</code></pre>
