- commit
- 129d79fc8e988e10bc23ce88d17cdc4ea45f84e3
- parent
- 437af966d1373e33d4d3b3f1bfe6c7d9e88ee4c0
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2019-10-13 05:49
use Bool type alias
Diffstat
| M | xiwm.c | 14 | +++++++------- |
1 files changed, 7 insertions, 7 deletions
diff --git a/xiwm.c b/xiwm.c
@@ -49,7 +49,7 @@ struct Client {
49 49 int fx, fy, fw, fh;
50 50 unsigned int desktop;
51 51 int position;
52 -1 int isfixed, isfullscreen, isdock;
-1 52 Bool isfixed, isfullscreen, isdock;
53 53 Client *next;
54 54 Window win;
55 55 };
@@ -111,7 +111,7 @@ static void (*handler[LASTEvent]) (XEvent *) = {
111 111 [ConfigureRequest] = configurerequest,
112 112 };
113 113 static Atom wmatom[WMLast], netatom[NetLast];
114 -1 static int running = True;
-1 114 static Bool running = True;
115 115 static unsigned int desktop;
116 116 static float mfact = 0.5;
117 117 static Display *dpy;
@@ -223,7 +223,7 @@ wintoclient(Window w)
223 223 }
224 224
225 225 void
226 -1 grabbuttons(Client *c, int focused)
-1 226 grabbuttons(Client *c, Bool focused)
227 227 {
228 228 unsigned int i, j;
229 229 unsigned int modifiers[] = { 0, LockMask };
@@ -255,12 +255,12 @@ grabkeys(void)
255 255 True, GrabModeAsync, GrabModeAsync);
256 256 }
257 257
258 -1 int
-1 258 Bool
259 259 sendevent(Client *c, Atom proto)
260 260 {
261 261 int n;
262 262 Atom *protocols;
263 -1 int exists = 0;
-1 263 Bool exists = False;
264 264 XEvent ev;
265 265
266 266 if (XGetWMProtocols(dpy, c->win, &protocols, &n)) {
@@ -390,7 +390,7 @@ arrange(void)
390 390 }
391 391
392 392 void
393 -1 setfullscreen(Client *c, int fullscreen)
-1 393 setfullscreen(Client *c, Bool fullscreen)
394 394 {
395 395 if (fullscreen && !c->isfullscreen) {
396 396 XChangeProperty(dpy, c->win, netatom[NetWMState], XA_ATOM, 32,
@@ -571,7 +571,7 @@ manage(Window w, XWindowAttributes *wa)
571 571 }
572 572
573 573 void
574 -1 unmanage(Client *c, int destroyed)
-1 574 unmanage(Client *c, Bool destroyed)
575 575 {
576 576 Client *i;
577 577 XWindowChanges wc;