[go: up one dir, main page]

Menu

[12172e]: / src / wmsession.h  Maximize  Restore  History

Download this file

70 lines (56 with data), 1.5 kB

 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
61
62
63
64
65
66
67
68
69
#ifndef __SMWIN_H
#define __SMWIN_H
#ifdef SM
class YFrameWindow;
class SMWindowKey {
public:
SMWindowKey(YFrameWindow *f);
SMWindowKey(char *id, char *role);
SMWindowKey(char *id, char *klass, char *instance);
~SMWindowKey();
friend class SMWindows;
private:
char *clientId;
char *windowRole;
// not used if role != 0 ?
char *windowClass;
char *windowInstance;
};
class SMWindowInfo {
public:
SMWindowInfo(YFrameWindow *f);
SMWindowInfo(char *id, char *role,
int x, int y, int w, int h,
unsigned long state, int layer, int workspace);
SMWindowInfo(char *id, char *klass, char *instance,
int x, int y, int w, int h,
unsigned long state, int layer, int workspace);
~SMWindowInfo();
friend class SMWindows;
private:
SMWindowKey key;
int x, y;
unsigned int width, height;
unsigned long state;
unsigned int layer;
unsigned int workspace;
};
class SMWindows {
public:
SMWindows();
~SMWindows();
void clearAllInfo();
void addWindowInfo(SMWindowInfo *info);
void setWindowInfo(YFrameWindow *f);
bool getWindowInfo(YFrameWindow *f, SMWindowInfo *info);
bool removeWindowInfo(YFrameWindow *f);
bool findWindowInfo(YFrameWindow *f);
private:
int windowCount;
SMWindowInfo **windows;
};
void loadWindowInfo();
bool findWindowInfo(YFrameWindow *f);
char *getsesfile();
#endif
#endif