[dev] Re: [dmenu] [patch] add xft and fix possible memory leak in version 4.2.1

2010-11-21 Thread Dan Brown
Connor Lane Smith wrote: >Would you be able to produce an Xft-only patch without filter >or tok? I'd also like to see if I can make the patch more "dmenu-like" >(just a few minor points) before we put it on the wiki or an Hg branch Connor- Attached is a patch that adds xft and cleanup routines to

[dev] Re: [dmenu] [patch] add xft and fix possible memory leak in version 4.2.1

2010-11-21 Thread Dan Brown
nyway. cleanup() is >like sweeping the floor for the apocalypse. That makes sense. Actually, both approaches make sense to me. I will leave it up to you to decide which way to go. >On 21 November 2010 03:56, Dan Brown wrote: >> 1) Attached is a patch that enables xft fonts in dmenu 4

[dev] Re: [dmenu] [patch] add xft and fix possible memory leak in version 4.2.1

2010-11-21 Thread Dan Brown
These enhancements make dmenu suitable for use as an instant-search +navigator in the command line music player interface called [muss](http://github.com/dbro/muss) + +Dan Brown, 2010 + diff --git a/config.mk b/config.mk index ebaab81..1e09c70 100644 --- a/config.mk +++ b/config.mk @@ -14,9 +14,13 @@

[dev] [dmenu] [patch] add xft and fix possible memory leak in version 4.2.1

2010-11-20 Thread Dan Brown
Hello suckless- 1) Attached is a patch that enables xft fonts in dmenu 4.2.1. 2) dmenu v4.2.1 appears to be leaking memory. It is missing the routines to teardown/cleanup memory structures present in previous versions. This patch also adds them. For those keeping score, the patch increases by 43

[dev] Re: [dwm] patch for statuscolors improved

2010-11-20 Thread Dan Brown
Attached is a new version of the statuscolors patch with some bug fixes to the textnw() function. The previous version would crash with some double free() calls, so this version uses the C99 variable length array instead. Dan - diff --git a/config.def.h b/config.def.h index 91cf439..6189

[dev] [dwm] patch for statuscolors improved

2010-11-19 Thread Dan Brown
Hello suckless folks- Attached is a patch that enables colors in the statusbar text. Yes, a very similar patch already exists (http://dwm.suckless.org/patches/statuscolors), so why did I make this one? 1) the pre-existing patch inserts a space for every color change code in the text. This one does

[dev] dmenu patch to return all matching items (for a new dmenu-powered music player interface)

2010-11-10 Thread Dan Brown
Hello and thanks everyone. As part of a project to create a simple and fast music player interface, I patched dmenu to allow it to return all matching items instead of just the one at the cursor. dmenu is the browsing interface; and there is another mode of operation that takes keywords as hints f