On Thu, Sep 25, 2008 at 12:12:26PM +0200, Johannes Hofmann wrote:
-------- Original-Nachricht --------
Datum: Thu, 25 Sep 2008 08:03:52 +0100 Von: Jeremy Henty <onepoint@starurchin.org> An: dillo-dev@dillo.org Betreff: Re: [Dillo-dev] Icon for Dillo window
On Wed, Sep 24, 2008 at 06:48:17PM -0400, Jorge Arellano Cid wrote:
I was thinking it'd be good to provide an icon for the WM to use. Does anybody know how to do it with FLTK2?
It appears not to be possible. In X Windows you set the _NET_WM_ICON hint
test/image.cxx has from the fltk2 tarball shows how to do it.
That doesn't work on my system (my window manager is icewm). For me test/image gets the standard X icon in its window frame and in its taskbar box when miminised (icewm doesn't use desktop icons). Does it work with any other window managers? Icewm sets icons by reading the WM_CLASS hint, interpreting it as the root of the icon file names and searching for the files in its icon directories. Unfortunately dillo2 sets WM_CLASS to '"Fltk", "fltk"'. If it set it to '"Dillo2", "dillo2"' I could configure its icons. If we're concerned about dillo2 playing properly with X11 and window managers then I'd say that it should set WM_CLASS to '"Dillo2", "dillo2"' on general principle. (The weird thing is that my icewm finds the right Firefox icons, yet I can't find any Firefox icon files in the icon directories. I'm still trying to figure out where it gets them from.) Also, the _NET_WM_ICON hint has the advantage that it can provide a list of icons of different sizes so that window managers can use a larger icon eg. when switching between applications with Alt+Tab. Regards, Jeremy Henty