Configuration file for DWM on MacBook Air
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
454 B

18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
  1. /*
  2. * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
  3. * See LICENSE file for license details.
  4. */
  5. #include "wm.h"
  6. #include <stdio.h>
  7. #include <string.h>
  8. void
  9. run(void *aux)
  10. {
  11. spawn(dpy, aux);
  12. }
  13. void
  14. quit(void *aux)
  15. {
  16. running = False;
  17. }
  18. void
  19. kill(void *aux)
  20. {
  21. Client *c = stack;
  22. if(!c)
  23. return;
  24. if(c->proto & WM_PROTOCOL_DELWIN)
  25. send_message(c->win, wm_atom[WMProtocols], wm_atom[WMDelete]);
  26. else
  27. XKillClient(dpy, c->win);
  28. }