1 /* 2 * Motif 3 * 4 * Copyright (c) 1987-2012, The Open Group. All rights reserved. 5 * 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) 10 * any later version. 11 * 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 16 * details. 17 * 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 22 */ 23 #ifndef _WmXSMP_h 24 #define _WmXSMP_h 25 26 #include <X11/Intrinsic.h> 27 #include "WmGlobal.h" 28 29 /* Atoms used for session management capabilities. */ 30 #define _XA_DT_SM_CLIENT_ID "SM_CLIENT_ID" 31 #define _XA_DT_WMSAVE_HINT "_DT_WMSAVE_HINT" 32 33 /* _DT_WMSAVE_HINT flag definitions */ 34 #define WMSAVE_X (1L << 0) 35 #define WMSAVE_Y (1L << 1) 36 #define WMSAVE_WIDTH (1L << 2) 37 #define WMSAVE_HEIGHT (1L << 3) 38 #define WMSAVE_STATE (1L << 4) 39 #ifdef WSM 40 # define WMSAVE_WORKSPACES (1L << 5) 41 #endif 42 #define WMSAVE_ICON_X (1L << 6) 43 #define WMSAVE_ICON_Y (1L << 7) 44 45 extern void AddSMCallbacks(void); 46 extern void ResignFromSM(void); 47 extern void ExitWM(int exitCode); 48 extern XrmDatabase LoadClientResourceDB(void); 49 extern XrmDatabase SaveClientResourceDB(void); 50 extern Boolean FindClientDBMatch(ClientData *, char **); 51 extern Boolean GetSmClientIdClientList(ClientData ***, int *); 52 extern void SortClientListByWorkspace(ClientData **, int); 53 #ifdef WSM 54 extern void LoadClientIconPositions(ClientData *); 55 #endif 56 57 #endif /* _WmXSMP_h */ 58