Re: _NET_WM_ALLOWED_ACTIONS
- From: Lubos Lunak <l lunak suse cz>
- To: wm-spec-list gnome org
- Subject: Re: _NET_WM_ALLOWED_ACTIONS
- Date: Mon, 20 Nov 2006 17:55:45 +0100
On Monday 20 November 2006 15:01, Havoc Pennington wrote:
> Oleg Sukhodolsky wrote:
> > Hello,
> >
> > Is there any _standard_ way to disable the Minimize (or Maximize, or
> > Close, whatever) menuitem on the system menu (accessible via
> > Alt-Spacebar or Alt-RightClick under Metacity)?
> > I've read the _NET_WM_ALLOWED_ACTIONS spec, but it's not clear whether
> > this is client- or WM- managed hint...
>
> It is WM-managed; to disable things like that I think you have to use
> the old MWM hints.
Assuming the WM gives a damn about those. Hints are just that, hints and the
WM is not required to obey them (or even implement them). For minimize, I
don't think there's any good way to prevent that and, quite frankly, I don't
see why anyway. That actually applies to most of it, what exactly is the
point of disabling just e.g. minimize or maximize? Switch virtual desktops
and it's "minimized" anyway, resize the window manually and it's "maximized"
just as well.
For maximize, most WMs will decide to obey the maximum size and not offer
maximize for windows that are smaller then the workarea. For closing, your
app may ignore the WM_DELETE_WINDOW request, although that will not affect
the close button appearing. Also note that some WMs let you configure which
buttons are shown in the decorations.
--
Lubos Lunak
KDE developer
--------------------------------------------------------------
SUSE LINUX, s.r.o. e-mail: l lunak suse cz , l lunak kde org
Lihovarska 1060/12 tel: +420 284 028 972
190 00 Prague 9 fax: +420 284 028 951
Czech Republic http//www.suse.cz
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]