[wiki] [sites] wiki updated
changeset: 179:26a0c2b0b676
tag: tip
user: kzed_AT_eris
date: Mon Aug 17 17:31:41 2009 +0200
files: dwm.suckless.org/patches/attachabove-5.6.1.diff dwm.suckless.org/patches/attachabove.md
description:
added page on attachabove patch
diff -r 5c2831d00924 -r 26a0c2b0b676 dwm.suckless.org/patches/attachabove-5.6.1.diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dwm.suckless.org/patches/attachabove-5.6.1.diff Mon Aug 17 17:31:41 2009 +0200
_AT_@ -0,0 +1,40 @@
+diff -r e47a47bd3ed4 dwm.c
+--- a/dwm.c Tue Jul 21 10:57:54 2009 +0100
++++ b/dwm.c Mon Aug 17 15:03:36 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 attachabove(Client *c);
+ static void attachstack(Client *c);
+ static void buttonpress(XEvent *e);
+ static void checkotherwm(void);
+_AT_@ -394,6 +395,19 @@
+ attach(Client *c) {
+ c->next = c->mon->clients;
+ c->mon->clients = c;
++}
++
++void
++attachabove(Client *c) {
++ if(c->mon->sel == NULL || c->mon->sel == c->mon->clients || c->mon->sel->isfloating) {
++ attach(c);
++ return;
++ }
++
++ Client *at;
++ for (at = c->mon->clients; at->next != c->mon->sel; at = at->next);
++ c->next = at->next;
++ at->next = c;
+ }
+
+ void
+_AT_@ -1098,7 +1112,7 @@
+ c->isfloating = trans != None || c->isfixed;
+ if(c->isfloating)
+ XRaiseWindow(dpy, c->win);
+- attach(c);
++ attachabove(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 5c2831d00924 -r 26a0c2b0b676 dwm.suckless.org/patches/attachabove.md
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dwm.suckless.org/patches/attachabove.md Mon Aug 17 17:31:41 2009 +0200
_AT_@ -0,0 +1,10 @@
+# ATTACHABOVE
+
+## Description
+
+Make new clients get attached above the selected client (instead of always
+becoming the new master) - basically how xmonad does it.
+
+## Download
+
+ * [attachabove-5.6.1.diff](attachabove-5.6.1.diff) (1.1K) (20090817)
Received on Mon Aug 17 2009 - 17:32:14 CEST
This archive was generated by hypermail 2.3.0
: Thu Sep 13 2012 - 19:30:44 CEST