Initial revision
[wmaker-crm.git] / src / motif.h
blobd83e8332b442c668a54ad8d548635cf067966909
1 /* motif.h-- stuff for support for mwm hints
2 * ripped from E.h (enlightenment)
3 *
4 * WindowMaker window manager
5 *
6 * Copyright (c) 1997, 1998 Alfredo K. Kojima
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
21 * USA.
25 #ifndef WMMWM_H_
26 #define WMMWM_H_
28 #include <X11/Xproto.h>
30 /* Motif window hints */
31 #define MWM_HINTS_FUNCTIONS (1L << 0)
32 #define MWM_HINTS_DECORATIONS (1L << 1)
34 /* bit definitions for MwmHints.functions */
35 #define MWM_FUNC_ALL (1L << 0)
36 #define MWM_FUNC_RESIZE (1L << 1)
37 #define MWM_FUNC_MOVE (1L << 2)
38 #define MWM_FUNC_MINIMIZE (1L << 3)
39 #define MWM_FUNC_MAXIMIZE (1L << 4)
40 #define MWM_FUNC_CLOSE (1L << 5)
42 /* bit definitions for MwmHints.decorations */
43 #define MWM_DECOR_ALL (1L << 0)
44 #define MWM_DECOR_BORDER (1L << 1)
45 #define MWM_DECOR_RESIZEH (1L << 2)
46 #define MWM_DECOR_TITLE (1L << 3)
47 #define MWM_DECOR_MENU (1L << 4)
48 #define MWM_DECOR_MINIMIZE (1L << 5)
49 #define MWM_DECOR_MAXIMIZE (1L << 6)
51 #define PROP_MWM_HINTS_ELEMENTS 4
53 /* Motif window hints */
54 typedef struct _mwmhints
56 CARD32 flags;
57 CARD32 functions;
58 CARD32 decorations;
59 INT32 inputMode;
61 MWMHints;
63 extern Atom _XA_MOTIF_WM_HINTS;
65 #endif