Return to repo list

suckless-gf-dmenu

Gentoo-friendly patches for Suckless's dmenu.
Return to HMagellan.com

initialtext-nodoc.patch (489B)


      1 diff --git a/dmenu.c b/dmenu.c
      2 index d605ab4..0564dfe 100644
      3 --- a/dmenu.c
      4 +++ b/dmenu.c
      5 @@ -680,7 +681,10 @@ main(int argc, char *argv[])
      6  			colors[SchemeSel][ColFg] = argv[++i];
      7  		else if (!strcmp(argv[i], "-w"))   /* embedding window id */
      8  			embed = argv[++i];
      9 -		else
     10 +		else if (!strcmp(argv[i], "-it")) {   /* embedding window id */
     11 +			const char * text = argv[++i];
     12 +			insert(text, strlen(text));
     13 +		} else
     14  			usage();
     15  
     16  	if (!setlocale(LC_CTYPE, "") || !XSupportsLocale())