Included is a patch to add functionality to see a screen-like list of
windows from tabbed using dmenu to tabbed-0.2.
Currently it uses popen() to open a pipe to dmenu, which then sets an
xproperty, which on update switches to the window matching that title.
As you can imagine this is a little hack
Patch attached. What I have changed:
* Replaced `tok` and `ctok` functions with `skip` and (already
existing, but a little different) `eat`
* Changed parsing of separators ( from RFC) in server
responses. Now tabs are not skipped. Also no more than one space is
skipped. RFC says there
Another two bugs.
Lines 70-73:
if(!c || !isspace(msg[1]))
sout("%s", msg);
else {
if(msg[1])
If line 73 is executed, isspace(msg[1]) is true. So it can't be equal
to '\0'. Therefore, condition `msg[1]` is always true.
* * *
When you type
:abcd
line 97
sout("%c %s", c, m