sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 80dc26f823b0cfd25473c6c56f2420d2171027c5
parent 58c89a0431c1391603136480694dee2c260e22fc
Author: Rob Pilling <my name at gmail dot com>
Date:   Wed, 11 May 2011 02:42:52 +0100

Removed patch - now in tip
Diffstat:
Dtools.suckless.org/dmenu/patches/dmenu-4.2.1-fastgrab.diff | 50--------------------------------------------------
Dtools.suckless.org/dmenu/patches/fastgrab.md | 11-----------
2 files changed, 0 insertions(+), 61 deletions(-)

diff --git a/tools.suckless.org/dmenu/patches/dmenu-4.2.1-fastgrab.diff b/tools.suckless.org/dmenu/patches/dmenu-4.2.1-fastgrab.diff @@ -1,50 +0,0 @@ -diff -r a79e4a9cb167 dmenu.c ---- a/dmenu.c Sat Nov 20 09:25:08 2010 +0000 -+++ b/dmenu.c Fri Feb 18 04:24:31 2011 +0000 -@@ -66,6 +68,7 @@ - int - main(int argc, char *argv[]) { - int i; -+ Bool fastgrab = False; - - progname = "dmenu"; - for(i = 1; i < argc; i++) -@@ -78,6 +81,10 @@ - topbar = False; - else if(!strcmp(argv[i], "-i")) - fstrncmp = strncasecmp; -+ else if(!strcmp(argv[i], "-f")) -+ fastgrab = True; - else if(i == argc-1) - usage(); - /* double flags */ -@@ -101,15 +108,61 @@ - usage(); - - dc = initdc(); - initfont(dc, font); -+ -+ if(fastgrab) -+ setup(); /* grab X _now_ */ -+ - readstdin(); -- setup(); -+ -+ if(!fastgrab) -+ setup(); -+ else -+ match(); /* need to re-match now we've read the input */ -+ - run(); - - return EXIT_FAILURE; /* should not reach */ - } -@@ -536,7 +594,7 @@ - - void - usage(void) { -- fputs("usage: dmenu [-b] [-i] [-l lines] [-m monitor] [-p prompt] [-fn font]\n" -+ fputs("usage: dmenu [-b] [-i] [-f] [-l lines] [-m monitor] [-p prompt] [-fn font]\n" - " [-nb color] [-nf color] [-sb color] [-sf color] [-v]\n", stderr); - exit(EXIT_FAILURE); - } diff --git a/tools.suckless.org/dmenu/patches/fastgrab.md b/tools.suckless.org/dmenu/patches/fastgrab.md @@ -1,11 +0,0 @@ -FAST GRAB -========= - -This patch causes dmenu to grab the X11 keyboard before reading input. - -This is useful if your machine isn't too snappy, or if your input to dmenu takes a while to complete. - -Download --------- - -* [dmenu-4.2.1-fastgrab.diff](dmenu-4.2.1-fastgrab.diff)