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
460 B

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. void
  8. run(char *arg)
  9. {
  10. spawn(dpy, arg);
  11. }
  12. void
  13. quit(char *arg)
  14. {
  15. fputs("quit\n", stderr);
  16. running = False;
  17. }
  18. void
  19. kill(char *arg)
  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. }