Hey Connor, On 17 April 2010 02:20, Connor Lane Smith <c...@lubutu.com> wrote: >> Included is a patch to add functionality to see a screen-like list of >> windows from tabbed using dmenu to tabbed-0.2. > > I've been thinking about this problem since you posted your patch, and > I only just got to a solution. It's a bit of a round-about one, but it > seems a little cleaner. > > Basically I patched Anselm's lsw to take an argument, the window of > which to list the children (it defaults to root). So in tabbed's > list() you just popen("lsw <tabbed's xid> | dmenu -l 5", "r") and > fgets the output. One function, no atoms. > > Patches for lsw and tabbed attached.
Feel free to apply that patch to lsw. I think it's a great generalisation of lsw. Cheers, Anselm