I've redesigned the append-window patch to use the grid-patch way instead of
adding a new toggle and keybinding.
- The new patch does not creates the 'apwl' global variable.
- Implements a new symbol (doappend())
Using the META-space key you'll cycle between dotile, doappend and dofloat modes.
What do you think about this patch? it's is ok for mainstream?
The patch looks something like that:
$ echo '#define APPENDSYMBOL "[>="' >> config.h
diff -r a25294eac73a view.c
--- a/view.c Mon Jan 22 16:02:37 2007 +0100
+++ b/view.c Mon Feb 05 02:04:25 2007 +0100
@@ -118,6 +118,11 @@ dotile(void) {
}
void
+doappend(void) {
+ dotile();
+}
+
+void
focusnext(Arg *arg) {
Client *c;
@@ -213,7 +218,8 @@ togglefloat(Arg *arg) {
void
togglemode(Arg *arg) {
- arrange = (arrange == dofloat) ? dotile : dofloat;
+ arrange = (arrange == dofloat) ?
+ dotile : (arrange == dotile) ? doappend : dofloat;
if(sel)
arrange();
else
--- a/draw.c Mon Jan 22 16:02:37 2007 +0100
+++ b/draw.c Mon Feb 05 02:03:38 2007 +0100
@@ -111,7 +111,7 @@ drawstatus(void) {
dc.x += dc.w;
}
dc.w = bmw;
- drawtext(arrange == dofloat ? FLOATSYMBOL : TILESYMBOL, dc.norm, False, False);
+ drawtext(arrange == dofloat ? FLOATSYMBOL : (arrange == doappend ? APPENDSYMBOL : TILESYMBOL), dc.norm, False, False);
x = dc.x + dc.w;
dc.w = textw(stext);
dc.x = sw - dc.w;
--pancake
Received on Mon Feb 05 2007 - 02:14:19 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:35:48 UTC