Thanks Anselm, this works.

Below the patch for those who want to toggle maximisation vertical
and horizontal against 5.0.1.

regards,
Frederic 'jchome' Jaeckel
--- dwm.c	2008-06-19 10:11:38.000000000 +0200
+++ dwm.c	2008-07-01 11:00:27.000000000 +0200
@@ -188,6 +188,8 @@
 static void togglefloating(const Arg *arg);
 static void togglelayout(const Arg *arg);
 static void togglemax(const Arg *arg);
+static void togglemaxvert(const Arg *arg);
+static void togglemaxhoriz(const Arg *arg);
 static void toggletag(const Arg *arg);
 static void toggleview(const Arg *arg);
 static void unmanage(Client *c);
@@ -1495,6 +1497,22 @@
 }
 
 void
+togglemaxvert(const Arg *arg) {
+  sel->isfloating = !sel-> isfloating || sel->isfixed;
+  if(sel->isfloating)
+    resize(sel, sel->x, wy, sel->w, wh, False);
+  arrange();
+}
+
+void
+togglemaxhoriz(const Arg *arg) {
+  sel->isfloating = !sel-> isfloating || sel->isfixed;
+  if(sel->isfloating)
+    resize(sel, wx, sel->y, ww, sel->h, False);
+  arrange();
+}
+
+void
 toggletag(const Arg *arg) {
 	uint mask = sel->tags ^ (arg->ui & TAGMASK);
 

Attachment: signature.asc
Description: PGP signature

Reply via email to