~ft/picker

ffb97abccf0d8a01cf7db41c495103585d810699 — Sigrid Haflínudóttir 3 months ago a6de205
fix plumbing
1 files changed, 5 insertions(+), 3 deletions(-)

M picker.c
M picker.c => picker.c +5 -3
@@ 125,6 125,7 @@ static Rectangle srects[3];
static Space *space;
static Image *bg;
static char hex[12];
static int once;

static ulong
rgba2u(double *rgba)


@@ 414,6 415,7 @@ readcolors(void *x)
		}

		if (c == nil) {
			c = new;
			if (last != nil)
				last->next = new;
			new->prev = last;


@@ 425,6 427,8 @@ readcolors(void *x)
			ncolors++;
		}

		if (!once)
			printcolor(1, c);
		unlockdisplay(display);
		sendul(loaded, 0);
	}


@@ 460,7 464,6 @@ plumbproc(void *)
	if ((f = plumbopen("picker", OREAD)) >= 0) {
		while ((m = plumbrecv(f)) != nil) {
			loadtheme(m->data);
			dump(1);
			plumbfree(m);
		}
	}


@@ 484,14 487,13 @@ threadmain(int argc, char **argv)
		[Cloaded] = { nil, nil, CHANRCV },
		{ nil, nil, CHANEND },
	};
	int i, once, oldbuttons, slider;
	int i, oldbuttons, slider;
	ulong u;
	char buf[16];

	fmtinstall(L'©', colorfmt);

	space = &spaces[0];
	once = 0;
	ARGBEGIN{
	case 'e':
		once = 1;