aboutsummaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authoranselm@anselm1 <unknown>2008-03-04 21:40:49 +0000
committeranselm@anselm1 <unknown>2008-03-04 21:40:49 +0000
commit39af3c2607de029b66498064c4fc374df34fc653 (patch)
tree8a5845b6d59dc4477ff2773c8d996ae5536a818c /dwm.c
parent96ee9d888cc3cf90da3b6a6852d605255d25d020 (diff)
downloaddwm-39af3c2607de029b66498064c4fc374df34fc653.tar.gz
dwm-39af3c2607de029b66498064c4fc374df34fc653.tar.bz2
dwm-39af3c2607de029b66498064c4fc374df34fc653.zip
renamed monocle into maxmise, documented the keybindings in dwm(1)
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/dwm.c b/dwm.c
index b417167..b8db678 100644
--- a/dwm.c
+++ b/dwm.c
@@ -48,7 +48,7 @@
#define BUTTONMASK (ButtonPressMask|ButtonReleaseMask)
#define CLEANMASK(mask) (mask & ~(numlockmask|LockMask))
#define LENGTH(x) (sizeof x / sizeof x[0])
-#define MAXTAGLEN 16
+#define MAXLEN 16
#define MOUSEMASK (BUTTONMASK|PointerMotionMask)
@@ -153,7 +153,7 @@ void killclient(const char *arg);
void manage(Window w, XWindowAttributes *wa);
void mappingnotify(XEvent *e);
void maprequest(XEvent *e);
-void monocle(void);
+void maximise(void);
void movemouse(Client *c);
Client *nexttiled(Client *c);
void propertynotify(XEvent *e);
@@ -1073,13 +1073,12 @@ maprequest(XEvent *e) {
}
void
-monocle(void) {
+maximise(void) {
Client *c;
domwfact = dozoom = False;
- for(c = clients; c; c = c->next)
- if(isvisible(c))
- resize(c, wax, way, waw - 2 * c->border, wah - 2 * c->border, RESIZEHINTS);
+ for(c = nexttiled(clients); c; c = nexttiled(c->next))
+ resize(c, wax, way, waw - 2 * c->border, wah - 2 * c->border, RESIZEHINTS);
}
void