diff options
| author | Anselm R. Garbe <garbeam@gmail.com> | 2007-08-11 12:11:50 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <garbeam@gmail.com> | 2007-08-11 12:11:50 +0200 |
| commit | 2d81b78b853565a3e34a8a9190e2362a6fdde739 (patch) | |
| tree | d58d24853f77685588e42f73a01d782980a3b95e /dwm.h | |
| parent | let not overlap the borders (diff) | |
| download | dwm-2d81b78b853565a3e34a8a9190e2362a6fdde739.tar.gz dwm-2d81b78b853565a3e34a8a9190e2362a6fdde739.zip | |
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
Diffstat (limited to 'dwm.h')
| -rw-r--r-- | dwm.h | 5 |
1 files changed, 1 insertions, 4 deletions
| @@ -76,7 +76,7 @@ typedef struct { | |||
| 76 | 76 | ||
| 77 | typedef struct { | 77 | typedef struct { |
| 78 | const char *symbol; | 78 | const char *symbol; |
| 79 | void (*arrange)(const char *); | 79 | void (*arrange)(void); |
| 80 | } Layout; | 80 | } Layout; |
| 81 | 81 | ||
| 82 | extern const char *tags[]; /* all tags */ | 82 | extern const char *tags[]; /* all tags */ |
| @@ -120,15 +120,12 @@ unsigned int textw(const char *text); /* return the width of text in px*/ | |||
| 120 | void grabkeys(void); /* grab all keys defined in config.h */ | 120 | void grabkeys(void); /* grab all keys defined in config.h */ |
| 121 | 121 | ||
| 122 | /* layout.c */ | 122 | /* layout.c */ |
| 123 | void floating(const char *arg); /* arranges all windows floating */ | ||
| 124 | void focusclient(const char *arg); /* focuses next(1)/previous(-1) visible client */ | 123 | void focusclient(const char *arg); /* focuses next(1)/previous(-1) visible client */ |
| 125 | void initlayouts(void); /* initialize layout array */ | 124 | void initlayouts(void); /* initialize layout array */ |
| 126 | Client *nexttiled(Client *c); /* returns tiled successor of c */ | 125 | Client *nexttiled(Client *c); /* returns tiled successor of c */ |
| 127 | void restack(void); /* restores z layers of all clients */ | 126 | void restack(void); /* restores z layers of all clients */ |
| 128 | void setlayout(const char *arg); /* sets layout, NULL means next layout */ | 127 | void setlayout(const char *arg); /* sets layout, NULL means next layout */ |
| 129 | void togglebar(const char *arg); /* shows/hides the bar */ | 128 | void togglebar(const char *arg); /* shows/hides the bar */ |
| 130 | void togglemax(const char *arg); /* toggles maximization of floating client */ | ||
| 131 | void zoom(const char *arg); /* zooms the focused client to master area, arg is ignored */ | ||
| 132 | 129 | ||
| 133 | /* main.c */ | 130 | /* main.c */ |
| 134 | void updatebarpos(void); /* updates the bar position */ | 131 | void updatebarpos(void); /* updates the bar position */ |
