I am programming in Linux and am using X11 for my desktop. I would like to change the images of a minimized window in the task bar.
I am using Fluxbox.
I am currently using XIconifyWindow when the user clicks to minimize a window.
How can I control the little square icon in the taskbar when the user minimized it?
Thanks.
Thank you for your help. The code I'm using to minimize looks something like this:
void minWin(Window window, bool yes) const
{
if(yes)
{
XIconifyWindow(display, window, DefaultScreen(display));
}else{
XMapWindow(display, window);
}
}
So how would I put in some code to set the icon depending on some property?
Like
if myProp == "green" set green icon
else set red icon
use _NET_WM_ICON property of toplevel window