Re: [gtk-list] WM hints interface



Owen Taylor wrote:
> /* Any of icon_window, pixmap, or mask can be NULL */
> void          gdk_window_set_icon        (GdkWindow       *window,
>                                           GdkWindow       *icon_window,
>                                           GdkPixmap       *pixmap,
>                                           GdkBitmap       *mask);

I think this is not enough. The function should be able to accept
multiple
pixmap/mask arguments. The first one would be set as the default icon 
(using standard arguments). The rest would be set as an additional 
property (I proposed WIN_ICONS as an array of pixmap,mask handles).
This is nonstandard, but I think most WMs currently in development
would be able to make use of it quickly. Of course we would need to
specify the recommended icons sizes.

> void          gdk_window_set_icon_name   (GdkWindow       *window,
>                                           gchar           *name);
> void          gdk_window_set_group       (GdkWindow       *window,
>                                           GdkWindow       *leader);
> void          gdk_window_set_decorations (GdkWindow       *window,
>                                           GdkWMDecoration  decorations);
> void          gdk_window_set_functions   (GdkWindow       *window,
>                                           GdkWMFunction    functions);
> 
> Which seems to cover most of the interesting things from the ICCCM
> and Motif hints. I've split it up into separate pieces, figuring

Modal windows are missing (inputMode from motif). Or you could say
that modal windows are banned from gtk (and I would agree ;-)
 
> One thing that i haven't provided here is an interface to
> XGetIconSizes. It seems to be pretty unimportant, since nobody
> much sets the WM_ICON_SIZES in an interesting way.
> (twm, fvwm, wm2, Enlightment don't set it. WindowMaker sets it
> to "anything from 1x1 to 64x64 is OK") It could be added in
> the future.

Icewm does. It sets it to 16x16 to 32x32 using 16x16 steps.

However, WM_ICON_SIZES does not allow to request an arbitrary set
of icons sizes.
 
>  - An IconWindow widget needs to be created, since icon windows
>    have a lot of constraints on them that Window widgets violate.

IconWindow icons are not very useful because you can only put them 
in one place in the window manager (the desktop). What happens 
if wm wants to put it in the menu or taskbar or something?

Mark
-- 
... MouseDevice /dev/null
--------_--------------------------------------------------------------
Marko.Macek@snet.fri.uni-lj.si       http://ixtas.fri.uni-lj.si/~markom



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]