separated layout-specific stuff into separate .h and .c files which are included in config.h resp. config.mk - this allows writing layouts for dwm without any need to patch existing code

This commit is contained in:
Anselm R. Garbe
2007-08-11 12:11:50 +02:00
parent b5eea45a31
commit 2d81b78b85
13 changed files with 164 additions and 134 deletions

5
dwm.h
View File

@ -76,7 +76,7 @@ typedef struct {
typedef struct {
const char *symbol;
void (*arrange)(const char *);
void (*arrange)(void);
} Layout;
extern const char *tags[]; /* all tags */
@ -120,15 +120,12 @@ unsigned int textw(const char *text); /* return the width of text in px*/
void grabkeys(void); /* grab all keys defined in config.h */
/* layout.c */
void floating(const char *arg); /* arranges all windows floating */
void focusclient(const char *arg); /* focuses next(1)/previous(-1) visible client */
void initlayouts(void); /* initialize layout array */
Client *nexttiled(Client *c); /* returns tiled successor of c */
void restack(void); /* restores z layers of all clients */
void setlayout(const char *arg); /* sets layout, NULL means next layout */
void togglebar(const char *arg); /* shows/hides the bar */
void togglemax(const char *arg); /* toggles maximization of floating client */
void zoom(const char *arg); /* zooms the focused client to master area, arg is ignored */
/* main.c */
void updatebarpos(void); /* updates the bar position */