commit 0ac446c5985263e8cbbffc5791b6b73a61f63cb6
parent 125f9def0c2b428b54e69f075482f816c3e7aa90
Author: Jérôme Andrieux <jerome.andrieux@gmail.com>
Date: Wed, 16 Dec 2009 19:07:09 +0100
Patches added : attachaside and gap
Diffstat:
2 files changed, 61 insertions(+), 0 deletions(-)
diff --git a/dwm.suckless.org/patches/dwm-attachaside-5.7.2.diff b/dwm.suckless.org/patches/dwm-attachaside-5.7.2.diff
@@ -0,0 +1,38 @@
+diff -r 9f79d36bd5e0 dwm.c
+--- a/dwm.c Tue Sep 08 13:33:58 2009 +0100
++++ b/dwm.c Tue Sep 15 14:19:26 2009 +0200
+@@ -153,6 +153,7 @@
+ static Bool applysizehints(Client *c, int *x, int *y, int *w, int *h, Bool interact);
+ static void arrange(void);
+ static void attach(Client *c);
++static void attachaside(Client *c);
+ static void attachstack(Client *c);
+ static void buttonpress(XEvent *e);
+ static void checkotherwm(void);
+@@ -397,6 +398,17 @@
+ }
+
+ void
++attachaside(Client *c) {
++ Client *at = nexttiled(c->mon->clients);;
++ if(c->mon->sel == NULL || c->mon->sel->isfloating || !at) {
++ attach(c);
++ return;
++ }
++ c->next = at->next;
++ at->next = c;
++}
++
++void
+ attachstack(Client *c) {
+ c->snext = c->mon->stack;
+ c->mon->stack = c;
+@@ -1105,7 +1117,7 @@
+ c->isfloating = trans != None || c->isfixed;
+ if(c->isfloating)
+ XRaiseWindow(dpy, c->win);
+- attach(c);
++ attachaside(c);
+ attachstack(c);
+ XMoveResizeWindow(dpy, c->win, c->x + 2 * sw, c->y, c->w, c->h); /* some windows require this */
+ XMapWindow(dpy, c->win);
diff --git a/dwm.suckless.org/patches/dwm-gap-5.6.2.diff b/dwm.suckless.org/patches/dwm-gap-5.6.2.diff
@@ -0,0 +1,23 @@
+--- a/dwm.c 2009-09-17 10:48:57.000000000 +0200
++++ b/dwm.c 2009-09-16 18:54:37.000000000 +0200
+@@ -1270,10 +1270,10 @@
+ XWindowChanges wc;
+
+ if(applysizehints(c, &x, &y, &w, &h, interact)) {
+- c->x = wc.x = x;
+- c->y = wc.y = y;
+- c->w = wc.width = w;
+- c->h = wc.height = h;
++ c->x = wc.x = x + gappx;
++ c->y = wc.y = y + gappx;
++ c->w = wc.width = w - 2 * gappx ;
++ c->h = wc.height = h - 2 * gappx ;
+ wc.border_width = c->bw;
+ XConfigureWindow(dpy, c->win, CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc);
+ configure(c);
+
+diff -r 72e52c5333ef config.def.h
+--- a/config.def.h Wed Nov 25 13:56:17 2009 +0000
++++ b/config.def.h Tue Dec 15 18:39:44 2009 +0100
+@@ -7,14 +7,15 @@
++static const unsigned int gappx = 4; /* gap pixel between windows */