History

fix plumbing

Sigrid Haflínudóttir committed 6 years ago

Commit ffb97ab1 parent a6de2051 file · +5 −3Browse files

Unified · Split

picker.c+5−3
@@ -125,6 +125,7 @@ static Rectangle srects[3]; · 124 unmodified lines
125125 static Space *space;
126126 static Image *bg;
127127 static char hex[12];
128+static int once;
128129
129130 static ulong
130131 rgba2u(double *rgba)
@@ -414,6 +415,7 @@ readcolors(void *x) · 283 unmodified lines
414415 }
415416
416417 if (c == nil) {
418+ c = new;
417419 if (last != nil)
418420 last->next = new;
419421 new->prev = last;
@@ -425,6 +427,8 @@ readcolors(void *x) · 5 unmodified lines
425427 ncolors++;
426428 }
427429
430+ if (!once)
431+ printcolor(1, c);
428432 unlockdisplay(display);
429433 sendul(loaded, 0);
430434 }
@@ -460,7 +464,6 @@ plumbproc(void *) · 29 unmodified lines
460464 if ((f = plumbopen("picker", OREAD)) >= 0) {
461465 while ((m = plumbrecv(f)) != nil) {
462466 loadtheme(m->data);
463− dump(1);
464467 plumbfree(m);
465468 }
466469 }
@@ -484,14 +487,13 @@ threadmain(int argc, char **argv) · 17 unmodified lines
484487 [Cloaded] = { nil, nil, CHANRCV },
485488 { nil, nil, CHANEND },
486489 };
487− int i, once, oldbuttons, slider;
490+ int i, oldbuttons, slider;
488491 ulong u;
489492 char buf[16];
490493
491494 fmtinstall(L'©', colorfmt);
492495
493496 space = &spaces[0];
494− once = 0;
495497 ARGBEGIN{
496498 case 'e':
497499 once = 1;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t