Re: [dwm] X paste support for dmenu? (patch)

From: Alexander Polakov <polachok_AT_gmail.com>
Date: Sun, 17 Jun 2007 17:16:29 +0400

* pancake <pancake_AT_youterm.com> [070617 16:14]:
> Hacky patch to add xpaste support to dmenu is attached.
>
> Key: ( ControlMask | XK_i )
>
> This is just a little mockup with sselp and dmenu, it works, but should probably
> be revised and reduced.
>
> --pancake
>

> +static void *
> +emallocz(unsigned int size) {
> + void *res = calloc(1, size);
> +
> + if(!res) {
> + fprintf(stderr, "fatal: could not malloc() %u bytes\n", size);
> + exit(EXIT_FAILURE);
> + }
> + return res;
> +}
> +
You don't need it, there's a emalloc() in util.c.

-- 
Alexander Polakov | http://polachok.livejournal.com
Received on Sun Jun 17 2007 - 15:16:47 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:44:41 UTC