Re: Proposal: Add a window state for "undecorated" windows

Rhialto <[email protected]> Sat, 7 Jun 2014 11:49:11 +0200
Newsgroups gmane.comp.gnome.wm-spec
Message-ID <[email protected]>
--===============4420935520106349113==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="MUnXZt0Uv08c1hBe"
Content-Disposition: inline


--MUnXZt0Uv08c1hBe
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

In order to contribute something positive: the Motif hints are described
in the Motif package, which these days is freely available, under the
LGPL I believe.
It contains a header file <Xm/MwmUtil.h> which contains among other
things

/*
 * Contents of the _MWM_HINTS property.
 */

typedef struct
{
    /* These correspond to XmRInt resources. (VendorSE.c) */
    int	         flags;
    int		 functions;
    int		 decorations;
    int		 input_mode;
    int		 status;
} MotifWmHints;

typedef MotifWmHints	MwmHints;

/* bit definitions for MwmHints.flags */
#define MWM_HINTS_FUNCTIONS	(1L << 0)
#define MWM_HINTS_DECORATIONS	(1L << 1)
#define MWM_HINTS_INPUT_MODE	(1L << 2)
#define MWM_HINTS_STATUS	(1L << 3)

/* bit definitions for MwmHints.functions */
#define MWM_FUNC_ALL		(1L << 0)
#define MWM_FUNC_RESIZE		(1L << 1)
#define MWM_FUNC_MOVE		(1L << 2)
#define MWM_FUNC_MINIMIZE	(1L << 3)
#define MWM_FUNC_MAXIMIZE	(1L << 4)
#define MWM_FUNC_CLOSE		(1L << 5)

/* bit definitions for MwmHints.decorations */
#define MWM_DECOR_ALL		(1L << 0)
#define MWM_DECOR_BORDER	(1L << 1)
#define MWM_DECOR_RESIZEH	(1L << 2)
#define MWM_DECOR_TITLE		(1L << 3)
#define MWM_DECOR_MENU		(1L << 4)
#define MWM_DECOR_MINIMIZE	(1L << 5)
#define MWM_DECOR_MAXIMIZE	(1L << 6)


/* values for MwmHints.input_mode */
#define MWM_INPUT_MODELESS			0
#define MWM_INPUT_PRIMARY_APPLICATION_MODAL	1
#define MWM_INPUT_SYSTEM_MODAL			2
#define MWM_INPUT_FULL_APPLICATION_MODAL	3

/* bit definitions for MwmHints.status */
#define MWM_TEAROFF_WINDOW	(1L << 0)

and a manual page VendorShell which describes the bits (as resource
values):


       XmNmwmDecorations
                 Specifies the decoration flags (specific decorations to ad=
d or remove
                 from the window manager frame) for the _MOTIF_WM_HINTS pro=
perty.
                 If any decoration flags are specified by the _MOTIF_WM_HIN=
TS
                 property, only decorations indicated by both that property=
 and the MWM
                 clientDecoration and transientDecoration resources are dis=
played.
                 If no decoration flags are specified by the _MOTIF_WM_HINT=
S property,
                 decorations indicated by the MWM clientDecoration and
                 transientDecoration resources are displayed.
                 The default for the XmNmwmDecorations resource
                 is not to specify any decoration flags for the _MOTIF_WM_H=
INTS property.


                 The value of this resource is the bitwise inclusive OR of =
one or more
                 flag bits.
                 The possible flag bit constants, defined in the include
                 file Xm/MwmUtil.h, are

              MWM_DECOR_ALL
                        All decorations except those specified by
                        other flag bits that are set

              MWM_DECOR_BORDER
                        Client window border

              MWM_DECOR_RESIZEH
                        Resize frame handles

              MWM_DECOR_TITLE
                        Title bar

              MWM_DECOR_MENU
                        Window menu button

              MWM_DECOR_MINIMIZE
                        Minimize window button

              MWM_DECOR_MAXIMIZE
                        Maximize window button

       XmNmwmFunctions
                 Specifies the function flags (specific window manager func=
tions to
                 apply or not apply to the client window) for the _MOTIF_WM=
_HINTS
                 property.
                 If any function flags are specified by the _MOTIF_WM_HINTS
                 property, only functions indicated by both that property a=
nd the MWM
                 clientFunctions and transientFunctions resources are
                 applied.
                 If no function flags are specified by the _MOTIF_WM_HINTS
                 property, functions indicated by the MWM clientFunctions a=
nd
                 transientFunctions resources are applied.
                 The default for the XmNmwmFunctions resource is not to spe=
cify any
                 function flags for the _MOTIF_WM_HINTS property.


                 The value of this resource is the bitwise inclusive OR of =
one or more
                 flag bits.
                 The possible flag bit constants, defined in the include
                 file Xm/MwmUtil.h, are

              MWM_FUNC_ALL
                        All functions except those specified by
                        other flag bits that are set

              MWM_FUNC_RESIZE
                        f.resize

              MWM_FUNC_MOVE
                        f.move

              MWM_FUNC_MINIMIZE
                        f.minimize

              MWM_FUNC_MAXIMIZE
                        f.maximize

              MWM_FUNC_CLOSE
                        f.kill

       XmNmwmInputMode
                 Specifies the input mode flag (application modal or system=
 modal input
                 constraints) for the _MOTIF_WM_HINTS property.
                 If no input mode flag is specified by the _MOTIF_WM_HINTS
                 property, no input constraints are applied, and input goes=
 to any
                 window.
                 The default for the XmNmwmInputMode resource is not to spe=
cify any
                 input mode flag for the _MOTIF_WM_HINTS property.


                 An application that sets input constraints on a dialog usu=
ally uses the
                 BulletinBoard's XmNdialogStyle resource rather than the pa=
rent
                 DialogShell's XmNmwmInputMode resource.


                 The possible values for this resource, defined in the
                 include file Xm/MwmUtil.h, are

              MWM_INPUT_MODELESS
                        Input goes to any window.

              MWM_INPUT_PRIMARY_APPLICATION_MODAL
                        Input does not
                        go to ancestors of this window.

              MWM_INPUT_SYSTEM_MODAL
                        Input goes only to this window.

              MWM_INPUT_FULL_APPLICATION_MODAL
                        Input does not go to other
                        windows in this application.

-Olaf.
--=20
___ Olaf 'Rhialto' Seibert  -- The Doctor: No, 'eureka' is Greek for
\X/ rhialto/at/xs4all.nl    -- 'this bath is too hot.'

--MUnXZt0Uv08c1hBe
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJTkuAXAAoJEJmJxkVhw/vTwgoIAKdlMlMtFtZRKt8r+6IhgNg9
49TD/sFUopZKZaBCO1xNDvv+81GC+o0cJJVvQjBNJGT3B/zlLG8luMS8+0KpSJ0K
jFuCdsM1MtRRCtCrDJ1SqH8uLeHTg9Yk8j0GlvZkmeWP5vJ+gPpxRPXsTpLpGh1q
O4+5XFSqshq0LUCvZBHzOWDIAbVzVzV/hohN/xpYKwtPxwDuS88XqzPk2vxT1Ur7
Ze2ZFsWEfyvFAz9JsuwkS8ZZ5ClayExsLS4f8XlrV/mxcwFsGApzj4isPhOsyzcw
u1zXV0j4D1oKBi1xin3yv4UkDsSfu8sXm3a3dahdybJfzBewQhHSRUAWneCf/zc=
=c9ac
-----END PGP SIGNATURE-----

--MUnXZt0Uv08c1hBe--

--===============4420935520106349113==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
wm-spec-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/wm-spec-list

--===============4420935520106349113==--