Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
added attach/detach functions which don't attach at the begin of list, but at the...
[dwm.git]
/
dwm.h
diff --git
a/dwm.h
b/dwm.h
index
9d2d959
..
6bb6b3a
100644
(file)
--- a/
dwm.h
+++ b/
dwm.h
@@
-23,6
+23,9
@@
enum { WMProtocols, WMDelete, WMLast };
/* cursor */
enum { CurNormal, CurResize, CurMove, CurLast };
/* cursor */
enum { CurNormal, CurResize, CurMove, CurLast };
+/* color */
+enum { ColFG, ColBG, ColLast };
+
/* window corners */
typedef enum { TopLeft, TopRight, BotLeft, BotRight } Corner;
/* window corners */
typedef enum { TopLeft, TopRight, BotLeft, BotRight } Corner;
@@
-36,9
+39,9
@@
typedef struct {
typedef struct { /* draw context */
int x, y, w, h;
typedef struct { /* draw context */
int x, y, w, h;
- unsigned long
bg
;
- unsigned long
fg
;
- unsigned long
border
;
+ unsigned long
norm[ColLast]
;
+ unsigned long
sel[ColLast]
;
+ unsigned long
status[ColLast]
;
Drawable drawable;
Fnt font;
GC gc;
Drawable drawable;
Fnt font;
GC gc;
@@
-65,7
+68,7
@@
struct Client {
extern const char *tags[];
extern char stext[1024];
extern const char *tags[];
extern char stext[1024];
-extern int
screen, sx, sy, sw, sh, bx, by, bw, bh, mw
;
+extern int
bx, by, bw, bh, bmw, mw, screen, sx, sy, sw, sh
;
extern unsigned int ntags, numlockmask;
extern void (*handler[LASTEvent])(XEvent *);
extern void (*arrange)(Arg *);
extern unsigned int ntags, numlockmask;
extern void (*handler[LASTEvent])(XEvent *);
extern void (*arrange)(Arg *);
@@
-124,6
+127,8
@@
extern void *erealloc(void *ptr, unsigned int size);
extern void spawn(Arg *arg);
/* view.c */
extern void spawn(Arg *arg);
/* view.c */
+extern void attach(Client *c);
+extern void detach(Client *c);
extern void dofloat(Arg *arg);
extern void dotile(Arg *arg);
extern void focusnext(Arg *arg);
extern void dofloat(Arg *arg);
extern void dotile(Arg *arg);
extern void focusnext(Arg *arg);