[openbox] How do windows set their icons?

Marc Wilson msw at cox.net
Wed May 12 01:09:12 EDT 2004


On Tue, May 11, 2004 at 01:22:37PM +0800, Christopher DeMarco wrote:
> To be  completely  clear:   the  application  (not  the   "application
> packager", "OS maintainer",  etc)  creates the  pixmap when it's  run,
> right?

Yes, usually from an image stored within the application, like the default
icon openbox provides.

> Does it place that pixmap somewhere in the filesystem, or does
> it provide a pointer to a memory location, or...?

The application says, "hey, make this pixmap for me, here's the data for
it", xlib comes back and says, "hey, I did it, here's a handle to where I
stashed it", and then the application sets a hint telling the X server,
"hey, I have this pixmap, here's where you can find it, this is my icon."
 
> Thanks!  And sorry if this is a silly question.

It's not silly.

-- 
 Marc Wilson |     Those who don't understand Linux are doomed to
 msw at cox.net |     reinvent it, poorly.  -- unidentified source



More information about the openbox mailing list