2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
26 /* $XConsortium: WmXSMP.h /main/4 1996/04/19 11:22:40 rswiston $ */
28 * (c) Copyright 1996 Digital Equipment Corporation.
29 * (c) Copyright 1996 Hewlett-Packard Company.
30 * (c) Copyright 1996 International Business Machines Corp.
31 * (c) Copyright 1996 Sun Microsystems, Inc.
32 * (c) Copyright 1996 Novell, Inc.
33 * (c) Copyright 1996 FUJITSU LIMITED.
34 * (c) Copyright 1996 Hitachi.
37 #include <X11/Intrinsic.h>
40 /* Atoms used for session management capabilities. */
41 #define _XA_DT_SM_CLIENT_ID "SM_CLIENT_ID"
42 #define _XA_DT_WMSAVE_HINT "_DT_WMSAVE_HINT"
44 /* _DT_WMSAVE_HINT flag definitions */
45 #define WMSAVE_X (1L << 0)
46 #define WMSAVE_Y (1L << 1)
47 #define WMSAVE_WIDTH (1L << 2)
48 #define WMSAVE_HEIGHT (1L << 3)
49 #define WMSAVE_STATE (1L << 4)
51 # define WMSAVE_WORKSPACES (1L << 5)
53 #define WMSAVE_ICON_X (1L << 6)
54 #define WMSAVE_ICON_Y (1L << 7)
56 extern void AddSMCallbacks(void);
57 extern void ResignFromSM(void);
58 extern void ExitWM(int exitCode);
59 extern XrmDatabase LoadClientResourceDB(void);
60 extern XrmDatabase SaveClientResourceDB(void);
61 extern Boolean FindClientDBMatch(ClientData *, char **);
62 extern Boolean GetSmClientIdClientList(ClientData ***, int *);
63 extern void SortClientListByWorkspace(ClientData **, int);
65 extern void LoadClientIconPositions(ClientData *);
68 #endif /* _WmXSMP_h */