Re: Support for WM spec



On Fri, Mar 02, 2001 at 09:24:21AM -0600, Sasha_Vasko osca state mo us wrote:
> > Alexander Larsson <alla lysator liu se> writes:
> >
> > > On 27 Feb 2001, Havoc Pennington wrote:
> > >
> > > >
> > > > Havoc Pennington <hp redhat com> writes:
> > > > > > +#ifdef NO_GDK_WMSPEC_SUPPORTED_YET
> > > > > > +  if (!_gdk_wmspec_supported (gdk_atom_intern ("_NET_WM_ICON",
> FALSE)))
> > > > > > +    return FALSE;
> > > > > > +#endif
> > > > >
> > > > > Possibly should set the icon anyway, in case a supported WM appears
> > > > > later, as Tim pointed out for the stuff I was doing.
> > > > >
> > > >
> > > > Thinking about it more, we can probably fall back to setting the icon
> > > > to a GdkWindow that renders the pixbuf, the way you did it
> > > > pre-WM-spec.
> > >
> > > Yes, having both _NET_WM_ICONs and GdkWindow icon may be confusing for
> the
> > > WM.
> >
> > The WM spec needs to be clear about what setting both _NET_WM_ICONS
> > and an Icon pixmap or window means.
> >
> > If _NET_WM_ICONS and a pixmap are set, it's pretty clear that
> > _NET_WM_ICONS is the preferred information.
> >
> > But it's conceivable that if _NET_WM_ICONS and a icon window are
> > set, then the icon is an active icon, and should be preferred
> > over _NET_WM_ICONS, and the app is just setting _NET_WM_ICONS
> > for the information of tasklists and suchlike.
> >
> > Does there need to be some disambiguation between these, or
> > can we just pick one interpretation and ignore the other?
> >
> > What do window managers do currently?
> 
> As per ICCCM :
> (4.1.9)
> In the Iconic state, the window manager usually will ensure that:
> If the window's WM_HINTS.icon_window is set, the window it names is visible.
> If the window's WM_HINTS.icon_window is not set but the window's WM_HINTS.icon_pixmap is set, the pixmap it names is visible.
> Otherwise, the window's WM_ICON_NAME string is visible.
> 
> 
> Thusly, if window is specifyed - it will always be used in preference of
> pixmap.

No, that's wrong.  Why do you conclude that "the window manager
usually will ensure that..." is equivalent to "if an icon window
hint is present it will always preferred to an icon pixmap hint"?
There may be window manager that can not handle icon window hints
at all or that allow the user to specify which hint to prefer.

Bye

Dominik ^_^  ^_^

--
Dominik Vogt, dominik vogt gmx de
Reply-To: dominik vogt gmx de




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