-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdwm.h
57 lines (50 loc) · 1.25 KB
/
dwm.h
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
#ifndef DWM_H
#define DWM_H
#include "layout.h"
#include <signal.h>
#include <X11/X.h>
typedef struct Pertag Pertag;
typedef struct Monitor Monitor;
typedef struct Client Client;
struct Monitor {
char layoutSymbol[16];
float mfact;
int nmaster;
int num;
int by; /* bar geometry */
int mx, my, mw, mh; /* screen size */
int wx, wy, ww, wh; /* window area */
unsigned int seltags;
unsigned int sellt;
unsigned int tagset[2];
int showbar;
int topbar;
Client *clients;
Client *sel;
Client *stack;
Monitor *next;
Window barwin;
Layout const *lt[2];
Pertag *pertag;
};
struct Client {
char name[256];
float mina, maxa;
float cfact;
int x, y, w, h;
int oldx, oldy, oldw, oldh;
int basew, baseh, incw, inch, maxw, maxh, minw, minh;
int bw, oldbw;
unsigned int tags;
unsigned int switchtotag;
int isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen, isterminal, noswallow;
pid_t pid;
Client *next;
Client *snext;
Client *swallowing;
Monitor *mon;
Window win;
};
#define ISVISIBLEONTAG(C, T) (((C)->tags & (T)))
#define ISVISIBLE(C) ISVISIBLEONTAG(C, (C)->mon->tagset[(C)->mon->seltags])
#endif // DWM_H