main.c
changeset 848 944739ec944a
parent 823 fb5cbf0bd923
child 850 2ea201354cf0
equal deleted inserted replaced
847:b386350fa4ec 848:944739ec944a
   220 }
   220 }
   221 
   221 
   222 /* extern */
   222 /* extern */
   223 
   223 
   224 void
   224 void
   225 sendevent(Window w, Atom a, long value) {
       
   226 	XEvent e;
       
   227 
       
   228 	e.type = ClientMessage;
       
   229 	e.xclient.window = w;
       
   230 	e.xclient.message_type = a;
       
   231 	e.xclient.format = 32;
       
   232 	e.xclient.data.l[0] = value;
       
   233 	e.xclient.data.l[1] = CurrentTime;
       
   234 	XSendEvent(dpy, w, False, NoEventMask, &e);
       
   235 	XSync(dpy, False);
       
   236 }
       
   237 
       
   238 void
       
   239 quit(const char *arg) {
   225 quit(const char *arg) {
   240 	readin = running = False;
   226 	readin = running = False;
   241 }
   227 }
   242 
   228 
   243 /* There's no way to check accesses to destroyed windows, thus those cases are
   229 /* There's no way to check accesses to destroyed windows, thus those cases are