aewl
changeset 295:7565875d07d3
extended cleanup
author | Anselm R.Garbe <arg@10ksloc.org> |
---|---|
date | Tue, 15 Aug 2006 09:37:12 +0200 |
parents | 0788e46843c0 |
children | fae61afa8617 |
files | config.arg.h main.c |
diffstat | 2 files changed, 12 insertions(+), 2 deletions(-) [+] |
line diff
1.1 --- a/config.arg.h Tue Aug 15 08:38:19 2006 +0200 1.2 +++ b/config.arg.h Tue Aug 15 09:37:12 2006 +0200 1.3 @@ -20,8 +20,11 @@ 1.4 /* modifier key function arguments */ \ 1.5 { MODKEY|ShiftMask, XK_Return, spawn, \ 1.6 { .cmd = "exec urxvt +sb -tr -bg black -fg '#eeeeee' -fn '"FONT"'" } }, \ 1.7 - { MODKEY, XK_Tab, focusnext, { 0 } }, \ 1.8 - { MODKEY|ShiftMask, XK_Tab, focusprev, { 0 } }, \ 1.9 + { MODKEY, XK_p, spawn, \ 1.10 + { .cmd = "exec `ls -lL /usr/bin /usr/local/bin 2>/dev/null | " \ 1.11 + "awk 'NF>2 && $1 ~ /^[^d].*x/ {print $NF}' | sort | uniq | dmenu`" } }, \ 1.12 + { MODKEY, XK_j, focusnext, { 0 } }, \ 1.13 + { MODKEY, XK_k, focusprev, { 0 } }, \ 1.14 { MODKEY, XK_Return, zoom, { 0 } }, \ 1.15 { MODKEY, XK_m, togglemax, { 0 } }, \ 1.16 { MODKEY|ShiftMask, XK_1, tag, { .i = 0 } }, \
2.1 --- a/main.c Tue Aug 15 08:38:19 2006 +0200 2.2 +++ b/main.c Tue Aug 15 09:37:12 2006 +0200 2.3 @@ -27,7 +27,14 @@ 2.4 resize(sel, True, TopLeft); 2.5 unmanage(sel); 2.6 } 2.7 + if(dc.font.set) 2.8 + XFreeFontSet(dpy, dc.font.set); 2.9 + else 2.10 + XFreeFont(dpy, dc.font.xfont); 2.11 XUngrabKey(dpy, AnyKey, AnyModifier, root); 2.12 + XDestroyWindow(dpy, barwin); 2.13 + XFreePixmap(dpy, dc.drawable); 2.14 + XFreeGC(dpy, dc.gc); 2.15 XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime); 2.16 XSync(dpy, False); 2.17 }