Sandeep Mulgund (smulgund++at++cra.com)
Wed, 22 Apr 1998 17:02:27 -0400
I'm trying to create a custom icon for the minimized window of a Performer
application. Per the Indigo Magic guidlines, I'm using some X functions to
define the WM_CLASS resource, as follows:
Display *dsp;
Window win;
dsp = pfGetCurWSConnection();
win = pipeWindow -> getWSWindow();
XClassHint* xch = XAllocClassHint();
char *resname = strdup("PilotStation");
xch -> res_name = strdup(resname);
xch -> res_class = strdup("PilotStationClass");
XSetClassHint(dsp, win, xch);
If I use 'xprop' on my running application window, it shows the resources
set to the correct values. However, when I minimize the window, it shows
the default minimized icon, rather than my custom icon (which I've placed
in the correct directory, with the name PilotStation.icon). What am I
doing wrong? The only way it works is if I put a file called
"default.icon" in ~/.icon/. It seems to be ignoring my definition of the
WM_CLASS resource.
Thanks,
Sandeep
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:57:17 PDT