Re: _NET_WM_ALLOWED_ACTIONS



Firstly I apologise for previous 5 garbadge messages came out of me - Lotus 
Notes has gone mad and prior to crashing spammed this list with garbadge.

On Wednesday 17 October 2001 15:28, Havoc Pennington wrote:
> Hi,
>
> One issue here. Are the listed actions those generally allowed for a
> given window in some abstract sense, or those allowed right this
> minute.

It has to be actions allowed regardless of current state. 

>
> That is, if a window is currently maximized, is maximization then not
> in _NET_WM_ALLOWED_ACTIONS, since the window is already maximized? Or
> is maximization in there because the window is "maximizable" in
> general, even if it isn't currently?
>
> This matters since a tasklist/pager needs to know whether to handle
> the current state by itself.

_NET_WM_STATE should be updated in that case and Pager/tasklist should 
recognize it and change Maximize button into Normilize button.
Thing is that even if window is maximized - there still needs to be a button 
to un-maximize it. So the button stays - its sematic changes.

>
> I think _NET_WM_ALLOWED_ACTIONS should reflect the current state,
> including all factors; so a maximized window would not allow a
> MAXIMIZE action. Then tasklists can just blindly mirror
> _NET_WM_ALLOWED_ACTIONS.

IT has to be used in conjunction with _NET_WM_STATE and should not be updated 
when state changes.

>
> However, this introduces the problem: how do you know if a window is
> unmaximizable, when it's maximized? _NET_WM_ACTION_UNMAXIMIZE?
>
> Havoc

Sasha



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