On Mon, Nov 29, 2010 at 2:44 AM, Connor Lane Smith <c...@lubutu.com> wrote: > Great, it's a lot cleaner this way. One problem with this approach, > though, is that if data is written to stdin it isn't displayed until > the next X event. This is likely fine for your use case, and > dmenu_run, but perhaps not for other cases. To fix that we'd have to > select between stdin and XConnectionNumber(dc->dpy).
Yes, this would be even better. > I've also attached a slightly neater version of your patch, plus a bugfix. Thank you!