Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
new stuff, fixed several issues
[dwm.git]
/
wm.c
diff --git
a/wm.c
b/wm.c
index
f0069d2
..
ed40a8b
100644
(file)
--- a/
wm.c
+++ b/
wm.c
@@
-95,13
+95,12
@@
win_property(Window w, Atom a, Atom t, long l, unsigned char **prop)
int
win_proto(Window w)
{
int
win_proto(Window w)
{
-
Atom
*protocols;
+
unsigned char
*protocols;
long res;
int protos = 0;
int i;
long res;
int protos = 0;
int i;
- res = win_property(w, wm_atom[WMProtocols], XA_ATOM, 20L,
- ((unsigned char **) &protocols));
+ res = win_property(w, wm_atom[WMProtocols], XA_ATOM, 20L, &protocols);
if(res <= 0) {
return protos;
}
if(res <= 0) {
return protos;
}
@@
-175,6
+174,18
@@
cleanup()
XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime);
}
XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime);
}
+void
+run(void *aux)
+{
+ spawn(dpy, aux);
+}
+
+void
+quit(void *aux)
+{
+ running = False;
+}
+
int
main(int argc, char *argv[])
{
int
main(int argc, char *argv[])
{