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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
/*
* Copyright 2004 Richard Levitte
*/
#ifndef _CTWM_SESSION_H
#define _CTWM_SESSION_H
#include <stdio.h> // For FILE
#include <X11/SM/SMlib.h>
// Guard
#ifndef SESSION
#error "You're unconditionally including session.h!"
#endif
/* Used in stashing session info */
struct TWMWinConfigEntry {
struct TWMWinConfigEntry *next;
int tag;
char *client_id;
char *window_role;
XClassHint class;
char *wm_name;
int wm_command_count;
char **wm_command;
short x, y;
unsigned short width, height;
short icon_x, icon_y;
bool iconified;
bool icon_info_present;
bool width_ever_changed_by_user;
bool height_ever_changed_by_user;
/* ===================[ Matthew McNeill Feb 1997 ]======================= *
* Added this property to facilitate restoration of workspaces when
* restarting a session.
*/
int occupation;
/* ====================================================================== */
};
typedef struct TWMWinConfigEntry TWMWinConfigEntry;
void ReadWinConfigFile(char *filename);
int GetWindowConfig(TwmWindow *theWindow,
short *x, short *y,
unsigned short *width, unsigned short *height,
bool *iconified,
bool *icon_info_present,
short *icon_x, short *icon_y,
bool *width_ever_changed_by_user,
bool *height_ever_changed_by_user,
int *occupation /* <== [ Matthew McNeill Feb 1997 ] == */
);
void ConnectToSessionManager(char *previous_id);
void shutdown_session(void);
#endif /* _CTWM_SESSION_H */
|