Mercurial > dwm-meillo
comparison main.c @ 138:c1185dc7a36e
some cleanups/fixes inspired by Jukka Salmi's feedback
author | arg@10ksloc.org |
---|---|
date | Fri, 21 Jul 2006 18:34:10 +0200 |
parents | 77922a389fa8 |
children | f328ce9c558c |
comparison
equal
deleted
inserted
replaced
137:77922a389fa8 | 138:c1185dc7a36e |
---|---|
8 #include <errno.h> | 8 #include <errno.h> |
9 #include <stdio.h> | 9 #include <stdio.h> |
10 #include <stdlib.h> | 10 #include <stdlib.h> |
11 #include <string.h> | 11 #include <string.h> |
12 #include <unistd.h> | 12 #include <unistd.h> |
13 #include <sys/select.h> | |
13 #include <X11/cursorfont.h> | 14 #include <X11/cursorfont.h> |
14 #include <X11/Xatom.h> | 15 #include <X11/Xatom.h> |
15 #include <X11/Xproto.h> | 16 #include <X11/Xproto.h> |
16 | 17 |
17 | 18 |
161 } | 162 } |
162 | 163 |
163 int | 164 int |
164 main(int argc, char *argv[]) | 165 main(int argc, char *argv[]) |
165 { | 166 { |
166 int i, n; | 167 int i; |
167 unsigned int mask; | 168 unsigned int mask; |
168 fd_set rd; | 169 fd_set rd; |
169 Bool readin = True; | 170 Bool readin = True; |
170 Window w; | 171 Window w; |
171 XEvent ev; | 172 XEvent ev; |