Hey, I thought it would be nice for certain programs (like surf) to spawn dmenu within its own borders. It turns out this is actually very simple. The attached patch uses the argument '-w'. Hopefully it could be of use to someone else.
Thanks, cls
dmenu.diff
Description: Binary data