Showing the icon in X11 is done by the window manager and this is inter client
communication.
There is a lot of WM available and some of them may not respond to the request.
The WM you use must be ICCCM compliant.
> Gonzalo Garramuno schrieb:
> >>
> >> window must be shown before setting the icon.
> >
> > Thanks, that prevents the crash but the icon is not shown in the window.
>
> Yes, to show the icon, it must be set, before the window is shown.
>
> Maybe this helps:
>
> > int main( int argc, char** argv )
> > {
> > fltk::Window window( 120, 220 );
> > window.show();
> > Pixmap p, mask;
>
> fl_open_display();
>
> > if ( XpmCreatePixmapFromData(fltk::xdisplay,
> > DefaultRootWindow(fltk::xdisplay),
> > viewer_xpm,
> > &p,&mask, NULL) == XpmSuccess )
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk