How can I change the taskbar icon using XIconifyWindow?

怎甘沉沦 提交于 2019-12-06 07:05:21

问题


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

回答1:


use _NET_WM_ICON property of toplevel window



来源:https://stackoverflow.com/questions/9634451/how-can-i-change-the-taskbar-icon-using-xiconifywindow

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!