about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@wmii.de>2006-07-12 16:40:37 +0200
committerAnselm R. Garbe <garbeam@wmii.de>2006-07-12 16:40:37 +0200
commit6db5ffb6c9a9c0db5c425c64a96a3896a682c95e (patch)
tree25560883099cb295166106592aa31403c2bd13b7
parent4641aa2925731ac180b08c80f57db176391ea4a9 (diff)
downloaddwm-6db5ffb6c9a9c0db5c425c64a96a3896a682c95e.tar.gz
added max
-rw-r--r--client.c12
-rw-r--r--kb.c1
-rw-r--r--wm.h5
3 files changed, 15 insertions, 3 deletions
diff --git a/client.c b/client.c
index b961d86..537336c 100644
--- a/client.c
+++ b/client.c
@@ -12,6 +12,18 @@
 #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;
diff --git a/kb.c b/kb.c
index 76dc29e..76c8be1 100644
--- a/kb.c
+++ b/kb.c
@@ -23,6 +23,7 @@ static Key key[] = {
 	{ 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 },
 };
diff --git a/wm.h b/wm.h
index 1e6f214..3d9b63c 100644
--- a/wm.h
+++ b/wm.h
@@ -72,13 +72,12 @@ 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();
 extern void keypress(XEvent *e);
id='n210' href='#n210'>210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271