[wiki] [sites] wiki updated

From: <hg_AT_suckless.org>
Date: Wed, 16 Jun 2010 03:23:18 +0000 (UTC)

changeset: 561:e7f58b0661d7
tag: tip
user: Andrew Antle <andrew_AT_antlechrist.org>
date: Tue Jun 15 23:22:00 2010 -0400
files: dwm.suckless.org/patches/attachabove-5.6.1.diff dwm.suckless.org/patches/attachabove.md dwm.suckless.org/patches/dwm-5.6.1-attachabove.diff
description:
Standardized naming of attachabove diff. Cleaned up page.


diff -r 2890afcfa4c1 -r e7f58b0661d7 dwm.suckless.org/patches/attachabove-5.6.1.diff
--- a/dwm.suckless.org/patches/attachabove-5.6.1.diff Tue Jun 15 23:02:51 2010 -0400
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
_AT_@ -1,40 +0,0 @@
-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 2890afcfa4c1 -r e7f58b0661d7 dwm.suckless.org/patches/attachabove.md
--- a/dwm.suckless.org/patches/attachabove.md Tue Jun 15 23:02:51 2010 -0400
+++ b/dwm.suckless.org/patches/attachabove.md Tue Jun 15 23:22:00 2010 -0400
_AT_@ -1,14 +1,15 @@
-# ATTACHABOVE
+ATTACHABOVE
+===========
 
-## Description
+Description
+-----------
+`attachabove` makes new clients attach above the selected client (instead of
+always becoming the new master) - basically how Xmonad does it.
 
-Make new clients get attached above the selected client (instead of always
-becoming the new master) - basically how Xmonad does it.
+Download
+--------
+* [dwm-5.6.1-attachabove.diff](dwm-5.6.1-attachabove.diff) (1.1K) (20090817)
 
-## Download
-
- * [attachabove-5.6.1.diff](attachabove-5.6.1.diff) (1.1K) (20090817)
-
-## Author
-
- * Mate Nagy - <mnagy_AT_port70.net>
+Author
+------
+* Mate Nagy - <mnagy_AT_port70.net>
diff -r 2890afcfa4c1 -r e7f58b0661d7 dwm.suckless.org/patches/dwm-5.6.1-attachabove.diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dwm.suckless.org/patches/dwm-5.6.1-attachabove.diff Tue Jun 15 23:22:00 2010 -0400
_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);
Received on Wed Jun 16 2010 - 05:23:18 CEST

This archive was generated by hypermail 2.3.0 : Thu Sep 13 2012 - 19:31:20 CEST