diff options
Diffstat (limited to 'src/core/dwm.h')
| -rw-r--r-- | src/core/dwm.h | 176 |
1 files changed, 88 insertions, 88 deletions
diff --git a/src/core/dwm.h b/src/core/dwm.h index 68eaf93..090448a 100644 --- a/src/core/dwm.h +++ b/src/core/dwm.h | |||
| @@ -2,126 +2,126 @@ | |||
| 2 | enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ | 2 | enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ |
| 3 | enum { SchemeNorm, SchemeSel }; /* color schemes */ | 3 | enum { SchemeNorm, SchemeSel }; /* color schemes */ |
| 4 | enum { | 4 | enum { |
| 5 | NetSupported, | 5 | NetSupported, |
| 6 | NetWMName, | 6 | NetWMName, |
| 7 | NetWMState, | 7 | NetWMState, |
| 8 | NetWMCheck, | 8 | NetWMCheck, |
| 9 | NetSystemTray, | 9 | NetSystemTray, |
| 10 | NetSystemTrayOP, | 10 | NetSystemTrayOP, |
| 11 | NetSystemTrayOrientation, | 11 | NetSystemTrayOrientation, |
| 12 | NetSystemTrayOrientationHorz, | 12 | NetSystemTrayOrientationHorz, |
| 13 | NetWMFullscreen, | 13 | NetWMFullscreen, |
| 14 | NetActiveWindow, | 14 | NetActiveWindow, |
| 15 | NetWMWindowType, | 15 | NetWMWindowType, |
| 16 | NetWMWindowTypeDialog, | 16 | NetWMWindowTypeDialog, |
| 17 | NetClientList, | 17 | NetClientList, |
| 18 | NetLast | 18 | NetLast |
| 19 | }; /* EWMH atoms */ | 19 | }; /* EWMH atoms */ |
| 20 | enum { Manager, Xembed, XembedInfo, XLast }; /* Xembed atoms */ | 20 | enum { Manager, Xembed, XembedInfo, XLast }; /* Xembed atoms */ |
| 21 | enum { | 21 | enum { |
| 22 | WMProtocols, | 22 | WMProtocols, |
| 23 | WMDelete, | 23 | WMDelete, |
| 24 | WMState, | 24 | WMState, |
| 25 | WMTakeFocus, | 25 | WMTakeFocus, |
| 26 | WMLast | 26 | WMLast |
| 27 | }; /* default atoms */ | 27 | }; /* default atoms */ |
| 28 | enum { | 28 | enum { |
| 29 | ClkTagBar, | 29 | ClkTagBar, |
| 30 | ClkLtSymbol, | 30 | ClkLtSymbol, |
| 31 | ClkStatusText, | 31 | ClkStatusText, |
| 32 | ClkWinTitle, | 32 | ClkWinTitle, |
| 33 | ClkClientWin, | 33 | ClkClientWin, |
| 34 | ClkRootWin, | 34 | ClkRootWin, |
| 35 | ClkLast | 35 | ClkLast |
| 36 | }; /* clicks */ | 36 | }; /* clicks */ |
| 37 | 37 | ||
| 38 | typedef union { | 38 | typedef union { |
| 39 | int i; | 39 | int i; |
| 40 | unsigned int ui; | 40 | unsigned int ui; |
| 41 | float f; | 41 | float f; |
| 42 | const void *v; | 42 | const void *v; |
| 43 | } Arg; | 43 | } Arg; |
| 44 | 44 | ||
| 45 | typedef struct { | 45 | typedef struct { |
| 46 | unsigned int click; | 46 | unsigned int click; |
| 47 | unsigned int mask; | 47 | unsigned int mask; |
| 48 | unsigned int button; | 48 | unsigned int button; |
| 49 | void (*func)(const Arg *arg); | 49 | void (*func)(const Arg *arg); |
| 50 | const Arg arg; | 50 | const Arg arg; |
| 51 | } Button; | 51 | } Button; |
| 52 | 52 | ||
| 53 | typedef struct Monitor Monitor; | 53 | typedef struct Monitor Monitor; |
| 54 | typedef struct Client Client; | 54 | typedef struct Client Client; |
| 55 | struct Client { | 55 | struct Client { |
| 56 | char name[256]; | 56 | char name[256]; |
| 57 | float mina, maxa; | 57 | float mina, maxa; |
| 58 | int x, y, w, h; | 58 | int x, y, w, h; |
| 59 | int oldx, oldy, oldw, oldh; | 59 | int oldx, oldy, oldw, oldh; |
| 60 | int basew, baseh, incw, inch, maxw, maxh, minw, minh, hintsvalid; | 60 | int basew, baseh, incw, inch, maxw, maxh, minw, minh, hintsvalid; |
| 61 | int bw, oldbw; | 61 | int bw, oldbw; |
| 62 | unsigned int tags; | 62 | unsigned int tags; |
| 63 | int isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen, | 63 | int isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen, |
| 64 | isterminal, noswallow; | 64 | isterminal, noswallow; |
| 65 | pid_t pid; | 65 | pid_t pid; |
| 66 | Client *next; | 66 | Client *next; |
| 67 | Client *snext; | 67 | Client *snext; |
| 68 | Client *swallowing; | 68 | Client *swallowing; |
| 69 | Monitor *mon; | 69 | Monitor *mon; |
| 70 | Window win; | 70 | Window win; |
| 71 | }; | 71 | }; |
| 72 | 72 | ||
| 73 | typedef struct { | 73 | typedef struct { |
| 74 | unsigned int mod; | 74 | unsigned int mod; |
| 75 | KeySym keysym; | 75 | KeySym keysym; |
| 76 | void (*func)(const Arg *); | 76 | void (*func)(const Arg *); |
| 77 | const Arg arg; | 77 | const Arg arg; |
| 78 | } Key; | 78 | } Key; |
| 79 | 79 | ||
| 80 | typedef struct { | 80 | typedef struct { |
| 81 | const char *symbol; | 81 | const char *symbol; |
| 82 | void (*arrange)(Monitor *); | 82 | void (*arrange)(Monitor *); |
| 83 | } Layout; | 83 | } Layout; |
| 84 | 84 | ||
| 85 | struct Monitor { | 85 | struct Monitor { |
| 86 | char ltsymbol[16]; | 86 | char ltsymbol[16]; |
| 87 | float mfact; | 87 | float mfact; |
| 88 | int nmaster; | 88 | int nmaster; |
| 89 | int num; | 89 | int num; |
| 90 | int by; /* bar geometry */ | 90 | int by; /* bar geometry */ |
| 91 | int mx, my, mw, mh; /* screen size */ | 91 | int mx, my, mw, mh; /* screen size */ |
| 92 | int wx, wy, ww, wh; /* window area */ | 92 | int wx, wy, ww, wh; /* window area */ |
| 93 | int gappih; /* horizontal gap between windows */ | 93 | int gappih; /* horizontal gap between windows */ |
| 94 | int gappiv; /* vertical gap between windows */ | 94 | int gappiv; /* vertical gap between windows */ |
| 95 | int gappoh; /* horizontal outer gaps */ | 95 | int gappoh; /* horizontal outer gaps */ |
| 96 | int gappov; /* vertical outer gaps */ | 96 | int gappov; /* vertical outer gaps */ |
| 97 | unsigned int seltags; | 97 | unsigned int seltags; |
| 98 | unsigned int sellt; | 98 | unsigned int sellt; |
| 99 | unsigned int tagset[2]; | 99 | unsigned int tagset[2]; |
| 100 | int showbar; | 100 | int showbar; |
| 101 | int topbar; | 101 | int topbar; |
| 102 | Client *clients; | 102 | Client *clients; |
| 103 | Client *sel; | 103 | Client *sel; |
| 104 | Client *stack; | 104 | Client *stack; |
| 105 | Monitor *next; | 105 | Monitor *next; |
| 106 | Window barwin; | 106 | Window barwin; |
| 107 | const Layout *lt[2]; | 107 | const Layout *lt[2]; |
| 108 | }; | 108 | }; |
| 109 | 109 | ||
| 110 | typedef struct { | 110 | typedef struct { |
| 111 | const char *class; | 111 | const char *class; |
| 112 | const char *instance; | 112 | const char *instance; |
| 113 | const char *title; | 113 | const char *title; |
| 114 | unsigned int tags; | 114 | unsigned int tags; |
| 115 | int isfloating; | 115 | int isfloating; |
| 116 | int isterminal; | 116 | int isterminal; |
| 117 | int noswallow; | 117 | int noswallow; |
| 118 | int monitor; | 118 | int monitor; |
| 119 | } Rule; | 119 | } Rule; |
| 120 | 120 | ||
| 121 | typedef struct Systray Systray; | 121 | typedef struct Systray Systray; |
| 122 | struct Systray { | 122 | struct Systray { |
| 123 | Window win; | 123 | Window win; |
| 124 | Client *icons; | 124 | Client *icons; |
| 125 | }; | 125 | }; |
| 126 | 126 | ||
| 127 | /* function declarations */ | 127 | /* function declarations */ |
