Re: FVWM: M_MINI_ICON packets

From: Brady Montz <bradym_at_cs.arizona.edu>
Date: 28 Mar 1997 21:29:15 -0700

"Randy J. Ray" <rjray_at_uswest.com> writes:

> Ahhhh... the last packet to be documented and grokked by my interface... :-)
>
> The packet M_MINI_ICON sends six word/integer values to the recepient:
>
> word meaning
>
> 0 X Window ID
> 1 X Pixmap ID of the picture
> 2 X Pixmap ID of the mask
> 3 Width
> 4 Height
> 5 Depth
>
> The problems that jump out at me:
>
> * As with the window-shade packets I pointed to earlier this week, the standard
> 3 args are missing from the start of this packet.
>
> * I don't think that either of the X Pixmap IDs (not to be confused with
> XPMs themselves, these can identify either a pixmap *or* a bitmap) are at
> all useful to a module. I don't know how easy it is for an application to
> get a pixmap using only this value. Under a widget library like Tk, I
> don't know if it is even possible. Perhaps for the C-based modules, this
> can be used. I would prefer to see a string, though.

The X Pixmap ID's are awesome. This way the server only needs to allocate each
pixmap once, and the modules don't need to go searching for the damn
file. Also this is how fvwm95 does it and they did it first so we might as
stay compatible with it.

>
> I would propose that the packet look more like:
>
> word meaning
>
> 0 X Win ID
> 1 Frame X Win ID
> 2 Fvwm ID
> 3 Width
> 4 Height
> 5 Depth
> 6+ File name
>
> of course, if the Pixmap ID values are of use, they can be added back in
> before the file name.
>
> A quick check shows that the only module using M_MINI_ICON currently is the
> FvwmIconMan that comes with Fvwm (I assume the more current version of
> FvwmIconMan also uses it).
>
> Randy

FvwmPager has been modified to use it as well. And I believe the FvwmTaskbar
module thingy uses them too.

-- 
 Brady Montz
 bradym_at_cs.arizona.edu
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Fri Mar 28 1997 - 22:29:23 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:00 BST