Mercurial > hg > index.fcgi > dwm > dwm-3.6.1-11pba
diff dwm.h @ 6:0968b3739b8d
apply keymodes patch
author | paulo@thepaulopc |
---|---|
date | Sun, 12 Jun 2011 14:32:54 -0700 |
parents | faa4cb9d7bd6 |
children | e749c30135e9 |
line diff
1.1 --- a/dwm.h Wed Jan 27 23:28:29 2010 -0800 1.2 +++ b/dwm.h Sun Jun 12 14:32:54 2011 -0700 1.3 @@ -33,6 +33,8 @@ 1.4 #include "config.h" 1.5 #include <X11/Xlib.h> 1.6 1.7 +#define LENGTH(X) (sizeof X / sizeof X[0]) 1.8 + 1.9 /* mask shorthands, used in event.c and client.c */ 1.10 #define BUTTONMASK (ButtonPressMask | ButtonReleaseMask) 1.11 1.12 @@ -87,6 +89,7 @@ 1.13 1.14 extern const char *tags[]; /* all tags */ 1.15 extern char stext[256]; /* status text */ 1.16 +extern char cmtext[256]; /* command mode text */ 1.17 extern int screen, sx, sy, sw, sh; /* screen geometry */ 1.18 extern int wax, way, wah, waw; /* windowarea geometry */ 1.19 extern unsigned int bh, blw; /* bar height, bar layout label width */ 1.20 @@ -114,6 +117,7 @@ 1.21 extern void updatetitle(Client *c); /* update the name of c */ 1.22 extern void unmanage(Client *c); /* destroy c */ 1.23 extern void zoom(Arg *arg); /* zooms the focused client to master area, arg is ignored */ 1.24 +extern void zoom_insert(Arg *arg); /* zoom, then go into insert mode */ 1.25 extern void pushup(Arg *arg); 1.26 extern void pushdown(Arg *arg); 1.27 extern void moveresize(Arg *arg); 1.28 @@ -126,6 +130,10 @@ 1.29 1.30 /* event.c */ 1.31 extern void grabkeys(void); /* grab all keys defined in config.h */ 1.32 +extern void clearcmd(Arg *arg); 1.33 +extern void setkeymode(Arg *arg); 1.34 +extern unsigned int getkeymode(void); 1.35 +extern void func_insert(void (*argfunc)(Arg *), Arg *arg); 1.36 1.37 /* layout.c */ 1.38 extern void focusnext(Arg *arg); /* focuses next visible client, arg is ignored */ 1.39 @@ -158,4 +166,4 @@ 1.40 extern void *emallocz(unsigned int size); /* allocates zero-initialized memory, exits on error */ 1.41 extern void eprint(const char *errstr, ...); /* prints errstr and exits with 1 */ 1.42 extern void spawn(Arg *arg); /* forks a new subprocess with arg's cmd */ 1.43 - 1.44 +extern void spawn_insert(Arg *arg); /* spawn, then go into insert mode */