Re: Proposal: _NET_WM_STATE_MINIMIZED



On Wed, 2004-06-16 at 11:05, Havoc Pennington wrote:
> On Wed, 2004-06-16 at 00:55, Elijah P Newren wrote:
> >  This means, for
> > example, that the tasklist on the gnome-panel can't know whether a window
> > is shaded or minimized (because _NET_WM_STATE_HIDDEN is set in both
> > cases).  This causes a problem with trying to disable non-sensical actions
> > for the tasklist (http://bugzilla.gnome.org/show_bug.cgi?id=122640).
> 
> Window list should be using _NET_WM_ALLOWED_ACTIONS for that, so the
> logic of what to allow can live in the window manager only.

Ah, so if I understand correctly, the fact that libwnck's right-click
menu for the tasklist showing items as sensitive that shouldn't be (i.e.
move or shade on a minimized window), is actually a Metacity bug for not
updating _NET_WM_ALLOWED_ACTIONS.  Correct?

If so, we can chuck my proposal as there's no other use I had in
mind.    

> > To fix this I propose to add _NET_WM_STATE_MINIMIZED to the spec.  I've
> > attached a patch for the spec's xml file.
> > 
> > Does this sound reasonable?
> 
> You definitely want to read the historical threads on this one; I
> remember it being confusing at the time, and it would take me a while to
> get back to understanding all the issues. Sasha linked to one of the
> main threads, I'm pretty sure there were more posts also (maybe the
> thread extends over multiple months, maybe there were multiple threads).

Well, as I said above, it looks like we can chuck my proposal.  However,
it'd still be really nice to have some clarification.  I read through
the thread and couldn't see any conclusion reached.  What I did find was
that it appears Sasha equates IconicState with minimized and that he
defines shaded as a subset of NormalState
(http://mail.gnome.org/archives/wm-spec-list/2001-December/msg00007.html), yet the Metacity implementation definitely doesn't do that (it does IconicState == minimized || shaded).  And you pointed out in that thread that the ICCCM didn't equate the IconicState and minimized and that the ICCCM defined IconicState to be ambiguous.  (http://mail.gnome.org/archives/wm-spec-list/2001-December/msg00020.html)


Elijah



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