… | |
… | |
892 | lerp (c.a, to.a, percent) |
892 | lerp (c.a, to.a, percent) |
893 | ) |
893 | ) |
894 | ); |
894 | ); |
895 | } |
895 | } |
896 | |
896 | |
897 | rxvt_selection::rxvt_selection (rxvt_display *disp, int selnum, Time tm, Window win, Atom prop, rxvt_term *term, void *cb_sv) |
897 | rxvt_selection::rxvt_selection (rxvt_display *disp, int selnum, Time tm, Window win, Atom prop, rxvt_term *term) |
898 | : display (disp), request_time (tm), request_win (win), request_prop (prop), term (term), cb_sv (cb_sv) |
898 | : display (disp), request_time (tm), request_win (win), request_prop (prop), term (term) |
899 | { |
899 | { |
900 | assert (selnum >= Sel_Primary && selnum <= Sel_Clipboard); |
900 | assert (selnum >= Sel_Primary && selnum <= Sel_Clipboard); |
901 | |
901 | |
902 | timer_ev.set<rxvt_selection, &rxvt_selection::timer_cb> (this); |
902 | timer_ev.set<rxvt_selection, &rxvt_selection::timer_cb> (this); |
903 | timer_ev.repeat = 10.; |
903 | timer_ev.repeat = 10.; |
… | |
… | |
954 | delete this; |
954 | delete this; |
955 | } |
955 | } |
956 | #if ENABLE_PERL |
956 | #if ENABLE_PERL |
957 | else |
957 | else |
958 | { |
958 | { |
959 | stop (); |
959 | stop (); // we do not really trust perl callbacks |
960 | abort (); //TODO |
960 | rxvt_perl.selection_finish (this, data, len); |
961 | } |
961 | } |
962 | #endif |
962 | #endif |
963 | } |
963 | } |
964 | |
964 | |
965 | bool |
965 | bool |