On Sun, Mar 20, 2011 at 06:24, Rob <robpill...@gmail.com> wrote: > Not sure how useful this will be, but I altered dmenu so it can grab the > X keyboard before reading input from stdin. > > It works well on my netbook, where occasionally dmenu_run can take up to > a second to grab the keyboard, meaning I end up typing a load of > jibberish into the focused window, expecting it to go into dmenu. > > Just an itch it scratches really. > > Cheers, > Rob.
I've tried to apply the attached patch (and the one on the dmenu web-site) with both patch and git-apply, and they've both complained: ~~~~ curl 'http://tools.suckless.org/dmenu/patches/dmenu-4.2.1-fastgrab.diff' | git apply fatal: corrupt patch at line 21 ~~~~ curl 'http://tools.suckless.org/dmenu/patches/dmenu-4.2.1-fastgrab.diff' | patch -p1 patching file dmenu.c patch: **** malformed patch at line 21: @@ -101,15 +108,61 @@ ~~~~ Am I missing something? Thanks, Ciprian.