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.

89 lines
1.8 KiB

18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
18 years ago
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 "config.h"
  6. #include "draw.h"
  7. #include "util.h"
  8. #include <X11/Xutil.h>
  9. #define WM_PROTOCOL_DELWIN 1
  10. /* atoms */
  11. enum { WMProtocols, WMDelete, WMLast };
  12. enum { NetSupported, NetWMName, NetLast };
  13. /* cursor */
  14. enum { CurNormal, CurResize, CurMove, CurInput, CurLast };
  15. /* rects */
  16. enum { RFloat, RGrid, RLast };
  17. typedef struct Client Client;
  18. typedef struct Key Key;
  19. struct Client {
  20. char name[256];
  21. char tag[256];
  22. unsigned int border;
  23. int proto;
  24. Bool fixedsize;
  25. Window win;
  26. Window trans;
  27. Window title;
  28. XSizeHints size;
  29. XRectangle r[RLast];
  30. Client *next;
  31. Client *snext;
  32. };
  33. struct Key {
  34. unsigned long mod;
  35. KeySym keysym;
  36. void (*func)(void *aux);
  37. void *aux;
  38. };
  39. extern Display *dpy;
  40. extern Window root, barwin;
  41. extern Atom wm_atom[WMLast], net_atom[NetLast];
  42. extern Cursor cursor[CurLast];
  43. extern XRectangle rect, barrect;
  44. extern Bool running, sel_screen, grid;
  45. extern void (*handler[LASTEvent]) (XEvent *);
  46. extern int screen;
  47. extern char statustext[1024], tag[256];
  48. extern Brush brush;
  49. extern Client *clients, *stack;
  50. /* bar.c */
  51. extern void draw_bar();
  52. /* cmd.c */
  53. extern void run(void *aux);
  54. extern void quit(void *aux);
  55. extern void kill(void *aux);
  56. /* client.c */
  57. extern void manage(Window w, XWindowAttributes *wa);
  58. extern void unmanage(Client *c);
  59. extern Client *getclient(Window w);
  60. extern void focus(Client *c);
  61. extern void update_name(Client *c);
  62. extern void draw_client(Client *c);
  63. /* event.c */
  64. extern unsigned int flush_events(long even_mask);
  65. /* key.c */
  66. extern void update_keys();
  67. extern void keypress(XEvent *e);
  68. /* wm.c */
  69. extern int error_handler(Display *dpy, XErrorEvent *error);
  70. extern void send_message(Window w, Atom a, long value);
  71. extern int win_proto(Window w);