changeset: 899:20f4f9a7af75
tag: tip
user: Jan Christoph Ebersbach <jceb_AT_e-jc.de>
date: Sat Mar 24 13:51:52 2012 +0100
files: dwm.suckless.org/patches/dwm-6.0-attachabove.diff dwm.suckless.org/patches/dwm-6.0-float_border_color2.diff dwm.suckless.org/patches/dwm-6.0-maximize_vert_horz.diff dwm.suckless.org/patches/dwm-6.0-moveresize.diff dwm.suckless.org/patches/dwm-6.0-pertag.diff dwm.suckless.org/patches/dwm-6.0-push.diff dwm.suckless.org/patches/dwm-6.0-save_floats.diff dwm.suckless.org/patches/dwm-6.0-single_tagset.diff dwm.suckless.org/patches/dwm-6.0-single_window_no_border.diff dwm.suckless.org/patches/dwm-6.0-statusallmons.diff dwm.suckless.org/patches/dwm-6.0-swapfocus.diff dwm.suckless.org/patches/dwm-6.0-tagall.diff dwm.suckless.org/patches/dwm-6.0-zoomswap.diff
description:
update patches to dwm tip ad90e7fab364
diff -r eb70559d6db5 -r 20f4f9a7af75 dwm.suckless.org/patches/dwm-6.0-attachabove.diff
--- a/dwm.suckless.org/patches/dwm-6.0-attachabove.diff Sat Mar 24 10:57:02 2012 +0100
+++ b/dwm.suckless.org/patches/dwm-6.0-attachabove.diff Sat Mar 24 13:51:52 2012 +0100
_AT_@ -1,10 +1,11 @@
+Author: Jan Christoph Ebersbach <jceb_AT_e-jc.de>
URL:
http://dwm.suckless.org/patches/attachabove
attachabove makes new clients attach above the selected client (instead of
always becoming the new master) – basically how Xmonad does it.
-diff -r 6f54bd1ef439 dwm.c
---- a/dwm.c Wed Jan 04 13:30:12 2012 +0100
-+++ b/dwm.c Sun Feb 12 09:32:42 2012 +0100
+diff -r ad90e7fab364 dwm.c
+--- a/dwm.c Fri Feb 10 00:36:08 2012 +0000
++++ b/dwm.c Sat Mar 24 13:41:10 2012 +0100
_AT_@ -160,6 +160,7 @@
static void arrange(Monitor *m);
static void arrangemon(Monitor *m);
_AT_@ -42,7 +43,7 @@
attachstack(c);
XMoveResizeWindow(dpy, c->win, c->x + 2 * sw, c->y, c->w, c->h); /* some windows require this */
setclientstate(c, NormalState);
-_AT_@ -1480,7 +1494,7 @@
+_AT_@ -1481,7 +1495,7 @@
detachstack(c);
c->mon = m;
c->tags = m->tagset[m->seltags]; /* assign tags of target monitor */
_AT_@ -51,7 +52,7 @@
attachstack(c);
focus(NULL);
arrange(NULL);
-_AT_@ -1900,7 +1914,7 @@
+_AT_@ -1903,7 +1917,7 @@
m->clients = c->next;
detachstack(c);
c->mon = mons;
diff -r eb70559d6db5 -r 20f4f9a7af75 dwm.suckless.org/patches/dwm-6.0-float_border_color2.diff
--- a/dwm.suckless.org/patches/dwm-6.0-float_border_color2.diff Sat Mar 24 10:57:02 2012 +0100
+++ b/dwm.suckless.org/patches/dwm-6.0-float_border_color2.diff Sat Mar 24 13:51:52 2012 +0100
_AT_@ -2,9 +2,9 @@
float_border_color2 allows you to specify a different border color for floating
windows.
-diff -r 6f54bd1ef439 config.def.h
---- a/config.def.h Wed Jan 04 13:30:12 2012 +0100
-+++ b/config.def.h Sun Feb 12 09:32:30 2012 +0100
+diff -r ad90e7fab364 config.def.h
+--- a/config.def.h Fri Feb 10 00:36:08 2012 +0000
++++ b/config.def.h Sat Mar 24 13:41:08 2012 +0100
_AT_@ -8,6 +8,8 @@
static const char selbordercolor[] = "#005577";
static const char selbgcolor[] = "#005577";
_AT_@ -14,9 +14,9 @@
static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
static const Bool showbar = True; /* False means no bar */
-diff -r 6f54bd1ef439 dwm.c
---- a/dwm.c Wed Jan 04 13:30:12 2012 +0100
-+++ b/dwm.c Sun Feb 12 09:32:30 2012 +0100
+diff -r ad90e7fab364 dwm.c
+--- a/dwm.c Fri Feb 10 00:36:08 2012 +0000
++++ b/dwm.c Sat Mar 24 13:41:08 2012 +0100
_AT_@ -57,7 +57,7 @@
/* enums */
_AT_@ -47,7 +47,7 @@
attach(c);
attachstack(c);
XMoveResizeWindow(dpy, c->win, c->x + 2 * sw, c->y, c->w, c->h); /* some windows require this */
-_AT_@ -1615,9 +1620,11 @@
+_AT_@ -1616,9 +1621,11 @@
dc.norm[ColBorder] = getcolor(normbordercolor);
dc.norm[ColBG] = getcolor(normbgcolor);
dc.norm[ColFG] = getcolor(normfgcolor);
_AT_@ -60,17 +60,17 @@
dc.gc = XCreateGC(dpy, root, 0, NULL);
XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter);
_AT_@ -1741,6 +1748,10 @@
+ if(!selmon->sel)
return;
selmon->sel->isfloating = !selmon->sel->isfloating || selmon->sel->isfixed;
- if(selmon->sel->isfloating)
++ if(selmon->sel->isfloating)
+ XSetWindowBorder(dpy, selmon->sel->win, dc.sel[ColBorderFloat]);
+ else
+ XSetWindowBorder(dpy, selmon->sel->win, dc.sel[ColBorder]);
-+ if(selmon->sel->isfloating)
+ if(selmon->sel->isfloating)
resize(selmon->sel, selmon->sel->x, selmon->sel->y,
selmon->sel->w, selmon->sel->h, False);
- arrange(selmon);
-_AT_@ -1776,7 +1787,10 @@
+_AT_@ -1777,7 +1788,10 @@
if(!c)
return;
grabbuttons(c, False);
diff -r eb70559d6db5 -r 20f4f9a7af75 dwm.suckless.org/patches/dwm-6.0-maximize_vert_horz.diff
--- a/dwm.suckless.org/patches/dwm-6.0-maximize_vert_horz.diff Sat Mar 24 10:57:02 2012 +0100
+++ b/dwm.suckless.org/patches/dwm-6.0-maximize_vert_horz.diff Sat Mar 24 13:51:52 2012 +0100
_AT_@ -1,10 +1,11 @@
+Author: Jan Christoph Ebersbach <jceb_AT_e-jc.de>
URL:
http://dwm.suckless.org/patches/historical/moveresize
These patches provide helper functions for moving and resizing floating windows
using keybindings.
-diff -r 6f54bd1ef439 dwm.c
---- a/dwm.c Wed Jan 04 13:30:12 2012 +0100
-+++ b/dwm.c Sun Feb 12 09:32:28 2012 +0100
+diff -r ad90e7fab364 dwm.c
+--- a/dwm.c Fri Feb 10 00:36:08 2012 +0000
++++ b/dwm.c Sat Mar 24 13:41:07 2012 +0100
_AT_@ -90,7 +90,7 @@
int basew, baseh, incw, inch, maxw, maxh, minw, minh;
int bw, oldbw;
_AT_@ -23,9 +24,9 @@
if(!c->isfloating)
c->isfloating = c->oldstate = trans != None || c->isfixed;
if(c->isfloating)
-diff -r 6f54bd1ef439 maximize.c
+diff -r ad90e7fab364 maximize.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
-+++ b/maximize.c Sun Feb 12 09:32:28 2012 +0100
++++ b/maximize.c Sat Mar 24 13:41:07 2012 +0100
_AT_@ -0,0 +1,45 @@
+void
+maximize(int x, int y, int w, int h) {
diff -r eb70559d6db5 -r 20f4f9a7af75 dwm.suckless.org/patches/dwm-6.0-moveresize.diff
--- a/dwm.suckless.org/patches/dwm-6.0-moveresize.diff Sat Mar 24 10:57:02 2012 +0100
+++ b/dwm.suckless.org/patches/dwm-6.0-moveresize.diff Sat Mar 24 13:51:52 2012 +0100
_AT_@ -1,10 +1,11 @@
+Author: Jan Christoph Ebersbach <jceb_AT_e-jc.de>
URL:
http://dwm.suckless.org/patches/historical/moveresize
These patches provide helper functions for moving and resizing floating windows
using keybindings.
-diff -r 6f54bd1ef439 moveresize.c
+diff -r ad90e7fab364 moveresize.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
-+++ b/moveresize.c Sun Feb 12 09:32:20 2012 +0100
++++ b/moveresize.c Sat Mar 24 13:41:04 2012 +0100
_AT_@ -0,0 +1,64 @@
+void
+moveresize(const Arg *arg) {
diff -r eb70559d6db5 -r 20f4f9a7af75 dwm.suckless.org/patches/dwm-6.0-pertag.diff
--- a/dwm.suckless.org/patches/dwm-6.0-pertag.diff Sat Mar 24 10:57:02 2012 +0100
+++ b/dwm.suckless.org/patches/dwm-6.0-pertag.diff Sat Mar 24 13:51:52 2012 +0100
_AT_@ -1,9 +1,10 @@
+Author: Jan Christoph Ebersbach <jceb_AT_e-jc.de>
URL:
http://dwm.suckless.org/patches/pertag
This patch keeps layout, mwfact, barpos and nmaster per tag.
-diff -r 6f54bd1ef439 dwm.c
---- a/dwm.c Wed Jan 04 13:30:12 2012 +0100
-+++ b/dwm.c Sun Feb 12 09:32:34 2012 +0100
+diff -r ad90e7fab364 dwm.c
+--- a/dwm.c Fri Feb 10 00:36:08 2012 +0000
++++ b/dwm.c Sat Mar 24 13:41:09 2012 +0100
_AT_@ -124,6 +124,7 @@
void (*arrange)(Monitor *);
} Layout;
_AT_@ -78,7 +79,7 @@
arrange(selmon);
}
-_AT_@ -1555,10 +1585,13 @@
+_AT_@ -1556,10 +1586,13 @@
void
setlayout(const Arg *arg) {
_AT_@ -95,7 +96,7 @@
strncpy(selmon->ltsymbol, selmon->lt[selmon->sellt]->symbol, sizeof selmon->ltsymbol);
if(selmon->sel)
arrange(selmon);
-_AT_@ -1576,7 +1609,7 @@
+_AT_@ -1577,7 +1610,7 @@
f = arg->f < 1.0 ? arg->f + selmon->mfact : arg->f - 1.0;
if(f < 0.1 || f > 0.9)
return;
_AT_@ -104,7 +105,7 @@
arrange(selmon);
}
-_AT_@ -1729,7 +1762,7 @@
+_AT_@ -1730,7 +1763,7 @@
void
togglebar(const Arg *arg) {
_AT_@ -113,7 +114,7 @@
updatebarpos(selmon);
XMoveResizeWindow(dpy, selmon->barwin, selmon->wx, selmon->by, selmon->ww, bh);
arrange(selmon);
-_AT_@ -1763,9 +1796,29 @@
+_AT_@ -1764,9 +1797,29 @@
void
toggleview(const Arg *arg) {
unsigned int newtagset = selmon->tagset[selmon->seltags] ^ (arg->ui & TAGMASK);
_AT_@ -143,7 +144,7 @@
focus(NULL);
arrange(selmon);
}
-_AT_@ -2043,11 +2096,33 @@
+_AT_@ -2046,11 +2099,33 @@
void
view(const Arg *arg) {
diff -r eb70559d6db5 -r 20f4f9a7af75 dwm.suckless.org/patches/dwm-6.0-push.diff
--- a/dwm.suckless.org/patches/dwm-6.0-push.diff Sat Mar 24 10:57:02 2012 +0100
+++ b/dwm.suckless.org/patches/dwm-6.0-push.diff Sat Mar 24 13:51:52 2012 +0100
_AT_@ -1,9 +1,9 @@
URL:
http://dwm.suckless.org/patches/push
pushup and pushdown provide a way to move clients inside the clients list.
-diff -r 6f54bd1ef439 push.c
+diff -r ad90e7fab364 push.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
-+++ b/push.c Sun Feb 12 09:32:46 2012 +0100
++++ b/push.c Sat Mar 24 13:41:11 2012 +0100
_AT_@ -0,0 +1,58 @@
+static Client *
+prevtiled(Client *c) {
diff -r eb70559d6db5 -r 20f4f9a7af75 dwm.suckless.org/patches/dwm-6.0-save_floats.diff
--- a/dwm.suckless.org/patches/dwm-6.0-save_floats.diff Sat Mar 24 10:57:02 2012 +0100
+++ b/dwm.suckless.org/patches/dwm-6.0-save_floats.diff Sat Mar 24 13:51:52 2012 +0100
_AT_@ -3,9 +3,9 @@
into tiled mode. If the window is made floating again, the old dimensions will
be restored.
-diff -r 6f54bd1ef439 dwm.c
---- a/dwm.c Wed Jan 04 13:30:12 2012 +0100
-+++ b/dwm.c Sun Feb 12 09:32:23 2012 +0100
+diff -r ad90e7fab364 dwm.c
+--- a/dwm.c Fri Feb 10 00:36:08 2012 +0000
++++ b/dwm.c Sat Mar 24 13:41:05 2012 +0100
_AT_@ -86,6 +86,7 @@
char name[256];
float mina, maxa;
_AT_@ -25,7 +25,7 @@
XSelectInput(dpy, w, EnterWindowMask|FocusChangeMask|PropertyChangeMask|StructureNotifyMask);
grabbuttons(c, False);
if(!c->isfloating)
-_AT_@ -1741,8 +1746,16 @@
+_AT_@ -1742,8 +1747,16 @@
return;
selmon->sel->isfloating = !selmon->sel->isfloating || selmon->sel->isfixed;
if(selmon->sel->isfloating)
diff -r eb70559d6db5 -r 20f4f9a7af75 dwm.suckless.org/patches/dwm-6.0-single_tagset.diff
--- a/dwm.suckless.org/patches/dwm-6.0-single_tagset.diff Sat Mar 24 10:57:02 2012 +0100
+++ b/dwm.suckless.org/patches/dwm-6.0-single_tagset.diff Sat Mar 24 13:51:52 2012 +0100
_AT_@ -15,9 +15,9 @@
Please be aware that this patch probably breaks any other patch!
-diff -r 60b9b3056194 dwm.c
---- a/dwm.c Mon Mar 19 07:31:04 2012 +0100
-+++ b/dwm.c Mon Mar 19 07:32:30 2012 +0100
+diff -r ad90e7fab364 dwm.c
+--- a/dwm.c Fri Feb 10 00:36:08 2012 +0000
++++ b/dwm.c Sat Mar 24 13:41:03 2012 +0100
_AT_@ -45,7 +45,7 @@
#define CLEANMASK(mask) (mask & ~(numlockmask|LockMask) & (ShiftMask|ControlMask|Mod1Mask|Mod2Mask|Mod3Mask|Mod4Mask|Mod5Mask))
#define INTERSECT(x,y,w,h,m) (MAX(0, MIN((x)+(w),(m)->wx+(m)->ww) - MAX((x),(m)->wx)) \
diff -r eb70559d6db5 -r 20f4f9a7af75 dwm.suckless.org/patches/dwm-6.0-single_window_no_border.diff
--- a/dwm.suckless.org/patches/dwm-6.0-single_window_no_border.diff Sat Mar 24 10:57:02 2012 +0100
+++ b/dwm.suckless.org/patches/dwm-6.0-single_window_no_border.diff Sat Mar 24 13:51:52 2012 +0100
_AT_@ -1,10 +1,11 @@
+Author: Jan Christoph Ebersbach <jceb_AT_e-jc.de>
URL:
http://dwm.suckless.org/patches/noborder
This patch removes the border when there is just one window visible in tiled or
monocle layout.
-diff -r 6f54bd1ef439 dwm.c
---- a/dwm.c Wed Jan 04 13:30:12 2012 +0100
-+++ b/dwm.c Sun Feb 12 09:32:38 2012 +0100
+diff -r ad90e7fab364 dwm.c
+--- a/dwm.c Fri Feb 10 00:36:08 2012 +0000
++++ b/dwm.c Sat Mar 24 13:41:09 2012 +0100
_AT_@ -1191,7 +1191,7 @@
void
_AT_@ -34,7 +35,7 @@
}
void
-_AT_@ -1703,7 +1712,7 @@
+_AT_@ -1704,7 +1713,7 @@
void
tile(Monitor *m) {
_AT_@ -43,7 +44,7 @@
Client *c;
for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);
-_AT_@ -1714,17 +1723,36 @@
+_AT_@ -1715,17 +1724,36 @@
mw = m->nmaster ? m->ww * m->mfact : 0;
else
mw = m->ww;
_AT_@ -81,7 +82,7 @@
}
void
-_AT_@ -1740,9 +1768,15 @@
+_AT_@ -1741,9 +1769,15 @@
if(!selmon->sel)
return;
selmon->sel->isfloating = !selmon->sel->isfloating || selmon->sel->isfixed;
diff -r eb70559d6db5 -r 20f4f9a7af75 dwm.suckless.org/patches/dwm-6.0-statusallmons.diff
--- a/dwm.suckless.org/patches/dwm-6.0-statusallmons.diff Sat Mar 24 10:57:02 2012 +0100
+++ b/dwm.suckless.org/patches/dwm-6.0-statusallmons.diff Sat Mar 24 13:51:52 2012 +0100
_AT_@ -1,9 +1,9 @@
URL:
http://dwm.suckless.org/patches/statusallmons
This patch draws and updates the statusbar on all monitors.
-diff -r 6f54bd1ef439 dwm.c
---- a/dwm.c Wed Jan 04 13:30:12 2012 +0100
-+++ b/dwm.c Sun Feb 12 09:32:49 2012 +0100
+diff -r ad90e7fab364 dwm.c
+--- a/dwm.c Fri Feb 10 00:36:08 2012 +0000
++++ b/dwm.c Sat Mar 24 13:41:12 2012 +0100
_AT_@ -740,17 +740,13 @@
drawtext(m->ltsymbol, dc.norm, False);
dc.x += dc.w;
_AT_@ -28,7 +28,7 @@
if((dc.w = dc.x - x) > bh) {
dc.x = x;
if(m->sel) {
-_AT_@ -2005,9 +2001,11 @@
+_AT_@ -2008,9 +2004,11 @@
void
updatestatus(void) {
diff -r eb70559d6db5 -r 20f4f9a7af75 dwm.suckless.org/patches/dwm-6.0-swapfocus.diff
--- a/dwm.suckless.org/patches/dwm-6.0-swapfocus.diff Sat Mar 24 10:57:02 2012 +0100
+++ b/dwm.suckless.org/patches/dwm-6.0-swapfocus.diff Sat Mar 24 13:51:52 2012 +0100
_AT_@ -3,9 +3,9 @@
instead of having to think if you should use alt-j or alt-k for reaching the
last used window.
-diff -r 6f54bd1ef439 dwm.c
---- a/dwm.c Wed Jan 04 13:30:12 2012 +0100
-+++ b/dwm.c Sun Feb 12 09:32:52 2012 +0100
+diff -r ad90e7fab364 dwm.c
+--- a/dwm.c Fri Feb 10 00:36:08 2012 +0000
++++ b/dwm.c Sat Mar 24 13:41:13 2012 +0100
_AT_@ -224,6 +224,7 @@
static void showhide(Client *c);
static void sigchld(int unused);
_AT_@ -34,7 +34,7 @@
unsigned long
getcolor(const char *colstr) {
Colormap cmap = DefaultColormap(dpy, screen);
-_AT_@ -1775,6 +1782,7 @@
+_AT_@ -1776,6 +1783,7 @@
unfocus(Client *c, Bool setfocus) {
if(!c)
return;
_AT_@ -42,7 +42,7 @@
grabbuttons(c, False);
XSetWindowBorder(dpy, c->win, dc.norm[ColBorder]);
if(setfocus)
-_AT_@ -2116,6 +2124,7 @@
+_AT_@ -2119,6 +2127,7 @@
void
zoom(const Arg *arg) {
Client *c = selmon->sel;
diff -r eb70559d6db5 -r 20f4f9a7af75 dwm.suckless.org/patches/dwm-6.0-tagall.diff
--- a/dwm.suckless.org/patches/dwm-6.0-tagall.diff Sat Mar 24 10:57:02 2012 +0100
+++ b/dwm.suckless.org/patches/dwm-6.0-tagall.diff Sat Mar 24 13:51:52 2012 +0100
_AT_@ -1,9 +1,10 @@
+Author: Jan Christoph Ebersbach <jceb_AT_e-jc.de>
URL:
http://dwm.suckless.org/patches/historical/tagall
Shortcut to move all (floating) windows from one tag to another.
-diff -r 6f54bd1ef439 tagall.c
+diff -r ad90e7fab364 tagall.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
-+++ b/tagall.c Sun Feb 12 09:32:25 2012 +0100
++++ b/tagall.c Sat Mar 24 13:41:06 2012 +0100
_AT_@ -0,0 +1,24 @@
+void
+tagall(const Arg *arg) {
diff -r eb70559d6db5 -r 20f4f9a7af75 dwm.suckless.org/patches/dwm-6.0-zoomswap.diff
--- a/dwm.suckless.org/patches/dwm-6.0-zoomswap.diff Sat Mar 24 10:57:02 2012 +0100
+++ b/dwm.suckless.org/patches/dwm-6.0-zoomswap.diff Sat Mar 24 13:51:52 2012 +0100
_AT_@ -1,9 +1,10 @@
+Author: Jan Christoph Ebersbach <jceb_AT_e-jc.de>
URL:
http://dwm.suckless.org/patches/zoomswap
This patch swaps the current window with the previous master when zooming.
-diff -r 6f54bd1ef439 dwm.c
---- a/dwm.c Wed Jan 04 13:30:12 2012 +0100
-+++ b/dwm.c Tue Feb 14 07:09:37 2012 +0100
+diff -r ad90e7fab364 dwm.c
+--- a/dwm.c Fri Feb 10 00:36:08 2012 +0000
++++ b/dwm.c Sat Mar 24 13:41:14 2012 +0100
_AT_@ -253,6 +253,7 @@
static void zoom(const Arg *arg);
_AT_@ -12,7 +13,7 @@
static const char broken[] = "broken";
static char stext[256];
static int screen;
-_AT_@ -2116,14 +2117,32 @@
+_AT_@ -2119,14 +2120,32 @@
void
zoom(const Arg *arg) {
Client *c = selmon->sel;
Received on Sat Mar 24 2012 - 13:51:58 CET