Hello ROOTERS,
I am trying to set an icon and name to my root application.
TGMainFrame::SetClassHints does the trick for the name, but SetIconPixmap does nothing. I’m trying to call it with the argument (“record.png”).
- The picture is actually found in the root icons because the return value of the function is different than 0.
- It calls TGX11::SetIconPixmap which seems to run fine :
void TGX11::SetIconPixmap(Window_t id, Pixmap_t pic)
{
std::cout << "TGX11" << std::endl;
if (!id) return;
std::cout << "here ok" << std::endl;
XWMHints hints;
hints.flags = IconPixmapHint;
hints.icon_pixmap = (Pixmap) pic;
XSetWMHints((Display*)fDisplay, (Window) id, &hints);
}
It prints “here ok” with success when I call TGMainFrame::SetIconPixmap.
3. I guess it comes from the line XSetWMHints(… ? But it seems it is related to X11 and I don’t know how to go further to find a solution.
Do you have any idea how to solve my problem ? Specifications below.
Many thanks !
_ROOT Version: 6.24/06
_Platform: Ubuntu 20.04.4 LTS
_Compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
