dwm.h
changeset 769 dc60583894e0
parent 762 140bcd4782d8
child 771 05946fa53085
equal deleted inserted replaced
768:b1dbe65d3e84 769:dc60583894e0
   125 extern void quit(Arg *arg);			/* quit dwm nicely */
   125 extern void quit(Arg *arg);			/* quit dwm nicely */
   126 extern void sendevent(Window w, Atom a, long value);	/* send synthetic event to w */
   126 extern void sendevent(Window w, Atom a, long value);	/* send synthetic event to w */
   127 extern int xerror(Display *dsply, XErrorEvent *ee);	/* dwm's X error handler */
   127 extern int xerror(Display *dsply, XErrorEvent *ee);	/* dwm's X error handler */
   128 
   128 
   129 /* tag.c */
   129 /* tag.c */
   130 extern void initrregs(void);			/* initialize regexps of rules defined in config.h */
   130 extern void compileregexps(void);		/* initialize regexps of rules defined in config.h */
   131 extern void settags(Client *c, Client *trans);	/* sets tags of c */
   131 extern void settags(Client *c, Client *trans);	/* sets tags of c */
   132 extern void tag(Arg *arg);			/* tags c with arg's index */
   132 extern void tag(Arg *arg);			/* tags c with arg's index */
   133 extern void toggletag(Arg *arg);		/* toggles c tags with arg's index */
   133 extern void toggletag(Arg *arg);		/* toggles c tags with arg's index */
       
   134 
       
   135 /* tile.c */
       
   136 extern void dotile(void);			/* arranges all windows tiled */
       
   137 extern void incnmaster(Arg *arg);		/* increments nmaster with arg's index value */
       
   138 extern void resizemaster(Arg *arg);		/* resizes the master percent with arg's index value */
       
   139 extern void zoom(Arg *arg);			/* zooms the focused client to master area, arg is ignored */
   134 
   140 
   135 /* util.c */
   141 /* util.c */
   136 extern void *emallocz(unsigned int size);	/* allocates zero-initialized memory, exits on error */
   142 extern void *emallocz(unsigned int size);	/* allocates zero-initialized memory, exits on error */
   137 extern void eprint(const char *errstr, ...);	/* prints errstr and exits with 1 */
   143 extern void eprint(const char *errstr, ...);	/* prints errstr and exits with 1 */
   138 extern void spawn(Arg *arg);			/* forks a new subprocess with to arg's cmd */
   144 extern void spawn(Arg *arg);			/* forks a new subprocess with to arg's cmd */
   139 
   145 
   140 /* view.c */
   146 /* view.c */
   141 extern void detach(Client *c);			/* detaches c from global client list */
   147 extern void detach(Client *c);			/* detaches c from global client list */
   142 extern void dofloat(void);			/* arranges all windows floating */
   148 extern void dofloat(void);			/* arranges all windows floating */
   143 extern void dotile(void);			/* arranges all windows tiled */
       
   144 extern void focusnext(Arg *arg);		/* focuses next visible client, arg is ignored  */
   149 extern void focusnext(Arg *arg);		/* focuses next visible client, arg is ignored  */
   145 extern void focusprev(Arg *arg);		/* focuses previous visible client, arg is ignored */
   150 extern void focusprev(Arg *arg);		/* focuses previous visible client, arg is ignored */
   146 extern void incnmaster(Arg *arg);		/* increments nmaster with arg's index value */
       
   147 extern Bool isvisible(Client *c);		/* returns True if client is visible */
   151 extern Bool isvisible(Client *c);		/* returns True if client is visible */
   148 extern void resizemaster(Arg *arg);		/* resizes the master percent with arg's index value */
   152 extern Client *nextmanaged(Client *c);		/* returns managed successor of c */
   149 extern void restack(void);			/* restores z layers of all clients */
   153 extern void restack(void);			/* restores z layers of all clients */
   150 extern void togglefloat(Arg *arg);		/* toggles focusesd client between floating/non-floating state */
   154 extern void togglefloat(Arg *arg);		/* toggles focusesd client between floating/non-floating state */
   151 extern void togglemode(Arg *arg);		/* toggles global arrange function (dotile/dofloat) */
   155 extern void togglemode(Arg *arg);		/* toggles global arrange function (dotile/dofloat) */
   152 extern void toggleview(Arg *arg);		/* toggles the tag with arg's index (in)visible */
   156 extern void toggleview(Arg *arg);		/* toggles the tag with arg's index (in)visible */
   153 extern void view(Arg *arg);			/* views the tag with arg's index */
   157 extern void view(Arg *arg);			/* views the tag with arg's index */
   154 extern void zoom(Arg *arg);			/* zooms the focused client to master area, arg is ignored */