all repos — dwm @ 6db5ffb6c9a9c0db5c425c64a96a3896a682c95e

my dwm build

added max
Anselm R. Garbe garbeam@wmii.de
Wed, 12 Jul 2006 16:40:37 +0200
commit

6db5ffb6c9a9c0db5c425c64a96a3896a682c95e

parent

4641aa2925731ac180b08c80f57db176391ea4a9

3 files changed, 15 insertions(+), 3 deletions(-)

jump to
M client.cclient.c

@@ -12,6 +12,18 @@ #include "util.h"

#include "wm.h" void +max(void *aux) +{ + if(!stack) + return; + stack->x = sx; + stack->y = bh; + stack->w = sw - 2; + stack->h = sh - bh - 2; + resize(stack); +} + +void arrange(void *aux) { Client *c;
M kb.ckb.c

@@ -23,6 +23,7 @@ { Mod1Mask, XK_p, run, proglist },

{ Mod1Mask, XK_k, sel, "prev" }, { Mod1Mask, XK_j, sel, "next" }, { Mod1Mask, XK_g, arrange, NULL }, + { Mod1Mask, XK_m, max, NULL }, { Mod1Mask | ShiftMask, XK_c, kill, NULL }, { Mod1Mask | ShiftMask, XK_q, quit, NULL }, };
M wm.hwm.h

@@ -72,12 +72,11 @@ extern void raise(Client *c);

extern void lower(Client *c); extern void kill(void *aux); extern void sel(void *aux); +extern void max(void *aux); +extern void arrange(); /* event.c */ extern void discard_events(long even_mask); - -/* grid.c */ -extern void arrange(); /* key.c */ extern void update_keys();