[wiki] [sites] wiki updated

From: <hg_AT_suckless.org>
Date: Tue, 15 Sep 2009 12:45:46 +0000 (UTC)

changeset: 254:ab64f2ea5322
tag: tip
user: Jerome Andrieux <jerome_AT_gcu.info>
date: Tue Sep 15 14:45:27 2009 +0200
files: dwm.suckless.org/patches/attachaside-5.6.1.diff dwm.suckless.org/patches/attachaside.md
description:
Adding attachaside patch


diff -r 499e554048be -r ab64f2ea5322 dwm.suckless.org/patches/attachaside-5.6.1.diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dwm.suckless.org/patches/attachaside-5.6.1.diff Tue Sep 15 14:45:27 2009 +0200
_AT_@ -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
+_AT_@ -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);
+_AT_@ -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;
+_AT_@ -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 -r 499e554048be -r ab64f2ea5322 dwm.suckless.org/patches/attachaside.md
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dwm.suckless.org/patches/attachaside.md Tue Sep 15 14:45:27 2009 +0200
_AT_@ -0,0 +1,51 @@
+# ATTACHASIDE
+
+## Description
+
+Make new client get attached and focused in the stacking area instead of
+always becoming the new master.
+Basically an attachabove mod.
+
+## Example
+
+ Original behaviour :
+ +-----------------+-------+
+ | | |
+ | | P |
+ | | |
+ | N +-------|
+ | | |
+ | | |
+ | | |
+ +-----------------+-------+
+
+
+ New Behaviour :
+ +-----------------+-------+
+ | | |
+ | | N |
+ | | |
+ | P +-------+
+ | | |
+ | | |
+ | | |
+ +-----------------+-------+
+
+
+ +-----------------+-------+
+ | | |
+ | | P |
+ | | |
+ | +-------+
+ | | |
+ | | N |
+ | | |
+ +-----------------+-------+
+
+## Download
+
+ * [attachaside-5.6.1.diff](attachaside-5.6.1.diff) (1.1K) (20090915)
+
+## Author
+
+ * Jerome Andrieux - <jerome_AT_gcu.info>
Received on Tue Sep 15 2009 - 14:45:46 CEST

This archive was generated by hypermail 2.3.0 : Thu Sep 13 2012 - 19:30:50 CEST