Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
Added tag 3.7 for changeset baee494346e5
[dwm.git]
/
main.c
diff --git
a/main.c
b/main.c
index
73b713f
..
e6ba20c
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-21,7
+21,6
@@
char stext[256];
int screen, sx, sy, sw, sh, wax, way, waw, wah;
unsigned int bh, ntags, numlockmask;
Atom wmatom[WMLast], netatom[NetLast];
int screen, sx, sy, sw, sh, wax, way, waw, wah;
unsigned int bh, ntags, numlockmask;
Atom wmatom[WMLast], netatom[NetLast];
-Bool running = True;
Bool *seltag;
Bool selscreen = True;
Client *clients = NULL;
Bool *seltag;
Bool selscreen = True;
Client *clients = NULL;
@@
-36,6
+35,7
@@
Window root, barwin;
static int (*xerrorxlib)(Display *, XErrorEvent *);
static Bool otherwm, readin;
static int (*xerrorxlib)(Display *, XErrorEvent *);
static Bool otherwm, readin;
+static Bool running = True;
static void
cleanup(void) {
static void
cleanup(void) {
@@
-236,7
+236,7
@@
sendevent(Window w, Atom a, long value) {
}
void
}
void
-quit(
Arg
*arg) {
+quit(
const char
*arg) {
readin = running = False;
}
readin = running = False;
}
@@
-325,12
+325,11
@@
main(int argc, char *argv[]) {
}
drawstatus();
}
}
drawstatus();
}
- if(FD_ISSET(xfd, &rd))
- while(XPending(dpy)) {
- XNextEvent(dpy, &ev);
- if(handler[ev.type])
- (handler[ev.type])(&ev); /* call handler */
- }
+ while(XPending(dpy)) {
+ XNextEvent(dpy, &ev);
+ if(handler[ev.type])
+ (handler[ev.type])(&ev); /* call handler */
+ }
}
cleanup();
XCloseDisplay(dpy);
}
cleanup();
XCloseDisplay(dpy);