[go: up one dir, main page]

Menu

[f2b791]: / src / session-manager.h  Maximize  Restore  History

Download this file

41 lines (32 with data), 771 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* $Id$
* session-manager.h
* Copyright (C) 1998-1999 Greg J. Badros and Robert Bihlmeyer
* Scwm Session Manager Support
*/
#ifndef SESSION_MANAGER_H__
#define SESSION_MANAGER_H__
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <X11/X.h>
#include <X11/SM/SMlib.h>
#include <stdio.h>
#include "scwm.h"
#undef EXTERN
#undef EXTERN_SET
#ifdef SESSION_MANAGER_IMPLEMENTATION
#define EXTERN
#define EXTERN_SET(x,y) x = y
#else
#define EXTERN extern
#define EXTERN_SET(x,y) extern x
#endif
EXTERN_SET(int IceSMfd, -1);
EXTERN_SET(IceConn IceSMconn, NULL);
EXTERN_SET(SmcConn SMconn, NULL);
EXTERN_SET(char *SmcId, NULL);
EXTERN Atom XA_SM_CLIENT_ID;
void initSM();
void doneSM(int);
void restoreWindowState(ScwmWindow *);
#endif /* SESSION_MANAGER_H__ */