… | |
… | |
579 | XFlush (dpy); |
579 | XFlush (dpy); |
580 | } |
580 | } |
581 | |
581 | |
582 | void rxvt_display::reg (xevent_watcher *w) |
582 | void rxvt_display::reg (xevent_watcher *w) |
583 | { |
583 | { |
584 | if (!w.active) |
584 | if (!w->active) |
585 | { |
585 | { |
586 | xw.push_back (w); |
586 | xw.push_back (w); |
587 | w->active = xw.size (); |
587 | w->active = xw.size (); |
588 | } |
588 | } |
589 | } |
589 | } |
… | |
… | |
809 | //rxvt_warn ("could not allocate %04x %04x %04x, getting %04x %04x %04x instead (%d)\n", |
809 | //rxvt_warn ("could not allocate %04x %04x %04x, getting %04x %04x %04x instead (%d)\n", |
810 | // color.r, color.g, color.b, best->red, best->green, best->blue, diff); |
810 | // color.r, color.g, color.b, best->red, best->green, best->blue, diff); |
811 | |
811 | |
812 | got = alloc (screen, rgba (best->red, best->green, best->blue)); |
812 | got = alloc (screen, rgba (best->red, best->green, best->blue)); |
813 | |
813 | |
814 | delete colors; |
814 | delete [] colors; |
815 | } |
815 | } |
816 | #endif |
816 | #endif |
817 | |
817 | |
818 | return got; |
818 | return got; |
819 | } |
819 | } |