aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/dwm.h
diff options
context:
space:
mode:
authorFilip Wandzio <contact@philw.dev>2025-09-08 19:09:10 +0200
committerFilip Wandzio <contact@philw.dev>2025-09-08 19:09:10 +0200
commitf33c70176cd078c6e1c189b9c2a61089422129c9 (patch)
treeeaf3d27a81566d5118b0736ba32f5189963e4d1c /src/core/dwm.h
parentbd019ee25b380d32ccf900f5afa0dab9f9d541b8 (diff)
downloaddwm-f33c70176cd078c6e1c189b9c2a61089422129c9.tar.gz
dwm-f33c70176cd078c6e1c189b9c2a61089422129c9.zip
Enforce code style, reformat project
Signed-off-by: Filip Wandzio <contact@philw.dev>
Diffstat (limited to 'src/core/dwm.h')
-rw-r--r--src/core/dwm.h176
1 files changed, 88 insertions, 88 deletions
diff --git a/src/core/dwm.h b/src/core/dwm.h
index 68eaf93..090448a 100644
--- a/src/core/dwm.h
+++ b/src/core/dwm.h
@@ -2,126 +2,126 @@
2enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ 2enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */
3enum { SchemeNorm, SchemeSel }; /* color schemes */ 3enum { SchemeNorm, SchemeSel }; /* color schemes */
4enum { 4enum {
5 NetSupported, 5 NetSupported,
6 NetWMName, 6 NetWMName,
7 NetWMState, 7 NetWMState,
8 NetWMCheck, 8 NetWMCheck,
9 NetSystemTray, 9 NetSystemTray,
10 NetSystemTrayOP, 10 NetSystemTrayOP,
11 NetSystemTrayOrientation, 11 NetSystemTrayOrientation,
12 NetSystemTrayOrientationHorz, 12 NetSystemTrayOrientationHorz,
13 NetWMFullscreen, 13 NetWMFullscreen,
14 NetActiveWindow, 14 NetActiveWindow,
15 NetWMWindowType, 15 NetWMWindowType,
16 NetWMWindowTypeDialog, 16 NetWMWindowTypeDialog,
17 NetClientList, 17 NetClientList,
18 NetLast 18 NetLast
19}; /* EWMH atoms */ 19}; /* EWMH atoms */
20enum { Manager, Xembed, XembedInfo, XLast }; /* Xembed atoms */ 20enum { Manager, Xembed, XembedInfo, XLast }; /* Xembed atoms */
21enum { 21enum {
22 WMProtocols, 22 WMProtocols,
23 WMDelete, 23 WMDelete,
24 WMState, 24 WMState,
25 WMTakeFocus, 25 WMTakeFocus,
26 WMLast 26 WMLast
27}; /* default atoms */ 27}; /* default atoms */
28enum { 28enum {
29 ClkTagBar, 29 ClkTagBar,
30 ClkLtSymbol, 30 ClkLtSymbol,
31 ClkStatusText, 31 ClkStatusText,
32 ClkWinTitle, 32 ClkWinTitle,
33 ClkClientWin, 33 ClkClientWin,
34 ClkRootWin, 34 ClkRootWin,
35 ClkLast 35 ClkLast
36}; /* clicks */ 36}; /* clicks */
37 37
38typedef union { 38typedef union {
39 int i; 39 int i;
40 unsigned int ui; 40 unsigned int ui;
41 float f; 41 float f;
42 const void *v; 42 const void *v;
43} Arg; 43} Arg;
44 44
45typedef struct { 45typedef struct {
46 unsigned int click; 46 unsigned int click;
47 unsigned int mask; 47 unsigned int mask;
48 unsigned int button; 48 unsigned int button;
49 void (*func)(const Arg *arg); 49 void (*func)(const Arg *arg);
50 const Arg arg; 50 const Arg arg;
51} Button; 51} Button;
52 52
53typedef struct Monitor Monitor; 53typedef struct Monitor Monitor;
54typedef struct Client Client; 54typedef struct Client Client;
55struct Client { 55struct Client {
56 char name[256]; 56 char name[256];
57 float mina, maxa; 57 float mina, maxa;
58 int x, y, w, h; 58 int x, y, w, h;
59 int oldx, oldy, oldw, oldh; 59 int oldx, oldy, oldw, oldh;
60 int basew, baseh, incw, inch, maxw, maxh, minw, minh, hintsvalid; 60 int basew, baseh, incw, inch, maxw, maxh, minw, minh, hintsvalid;
61 int bw, oldbw; 61 int bw, oldbw;
62 unsigned int tags; 62 unsigned int tags;
63 int isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen, 63 int isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen,
64 isterminal, noswallow; 64 isterminal, noswallow;
65 pid_t pid; 65 pid_t pid;
66 Client *next; 66 Client *next;
67 Client *snext; 67 Client *snext;
68 Client *swallowing; 68 Client *swallowing;
69 Monitor *mon; 69 Monitor *mon;
70 Window win; 70 Window win;
71}; 71};
72 72
73typedef struct { 73typedef struct {
74 unsigned int mod; 74 unsigned int mod;
75 KeySym keysym; 75 KeySym keysym;
76 void (*func)(const Arg *); 76 void (*func)(const Arg *);
77 const Arg arg; 77 const Arg arg;
78} Key; 78} Key;
79 79
80typedef struct { 80typedef struct {
81 const char *symbol; 81 const char *symbol;
82 void (*arrange)(Monitor *); 82 void (*arrange)(Monitor *);
83} Layout; 83} Layout;
84 84
85struct Monitor { 85struct Monitor {
86 char ltsymbol[16]; 86 char ltsymbol[16];
87 float mfact; 87 float mfact;
88 int nmaster; 88 int nmaster;
89 int num; 89 int num;
90 int by; /* bar geometry */ 90 int by; /* bar geometry */
91 int mx, my, mw, mh; /* screen size */ 91 int mx, my, mw, mh; /* screen size */
92 int wx, wy, ww, wh; /* window area */ 92 int wx, wy, ww, wh; /* window area */
93 int gappih; /* horizontal gap between windows */ 93 int gappih; /* horizontal gap between windows */
94 int gappiv; /* vertical gap between windows */ 94 int gappiv; /* vertical gap between windows */
95 int gappoh; /* horizontal outer gaps */ 95 int gappoh; /* horizontal outer gaps */
96 int gappov; /* vertical outer gaps */ 96 int gappov; /* vertical outer gaps */
97 unsigned int seltags; 97 unsigned int seltags;
98 unsigned int sellt; 98 unsigned int sellt;
99 unsigned int tagset[2]; 99 unsigned int tagset[2];
100 int showbar; 100 int showbar;
101 int topbar; 101 int topbar;
102 Client *clients; 102 Client *clients;
103 Client *sel; 103 Client *sel;
104 Client *stack; 104 Client *stack;
105 Monitor *next; 105 Monitor *next;
106 Window barwin; 106 Window barwin;
107 const Layout *lt[2]; 107 const Layout *lt[2];
108}; 108};
109 109
110typedef struct { 110typedef struct {
111 const char *class; 111 const char *class;
112 const char *instance; 112 const char *instance;
113 const char *title; 113 const char *title;
114 unsigned int tags; 114 unsigned int tags;
115 int isfloating; 115 int isfloating;
116 int isterminal; 116 int isterminal;
117 int noswallow; 117 int noswallow;
118 int monitor; 118 int monitor;
119} Rule; 119} Rule;
120 120
121typedef struct Systray Systray; 121typedef struct Systray Systray;
122struct Systray { 122struct Systray {
123 Window win; 123 Window win;
124 Client *icons; 124 Client *icons;
125}; 125};
126 126
127/* function declarations */ 127/* function declarations */