How can I change the taskbar icon using XIconifyWi

2019-04-12 11:11发布

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

标签: x11
1条回答
一纸荒年 Trace。
2楼-- · 2019-04-12 11:23

use _NET_WM_ICON property of toplevel window

查看更多
登录 后发表回答