On 11/20/06, Lubos Lunak <[EMAIL PROTECTED]> wrote:
> 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.

That's exactly true! However, I implement somewhat like a splash screen,
and I don't wanna use the _NET_WM_WINDOW_TYPE_SPLASH window type as it
makes the splash window being "always on top" under metacity. And I
don't want the window to be "override redirect" as well.
In this scenario, I can't tell the metacity not to show the menu when
the user performs Alt-RightClick, on the other hand I have to disable
the menu items I mentioned before. That's why I'd like to implement such
a behavior. Does anyone have any ideas how?  Of course it would be
better to have code which works with (almost) all WMs, i.e. use
something from standard ;)

Thanks, Oleg.
_______________________________________________
wm-spec-list mailing list
wm-spec-list@gnome.org
http://mail.gnome.org/mailman/listinfo/wm-spec-list

Reply via email to