… | |
… | |
365 | #define Sel_CompoundText 0x10 /* last request was COMPOUND_TEXT */ |
365 | #define Sel_CompoundText 0x10 /* last request was COMPOUND_TEXT */ |
366 | #define Sel_UTF8String 0x20 /* last request was UTF8_STRING */ |
366 | #define Sel_UTF8String 0x20 /* last request was UTF8_STRING */ |
367 | |
367 | |
368 | struct rxvt_selection |
368 | struct rxvt_selection |
369 | { |
369 | { |
370 | rxvt_selection (rxvt_display *disp, int selnum, Time tm, Window win, Atom prop, rxvt_term *term, void *cb_sv = 0); |
370 | rxvt_selection (rxvt_display *disp, int selnum, Time tm, Window win, Atom prop, rxvt_term *term); |
371 | void run (); |
371 | void run (); |
372 | ~rxvt_selection (); |
372 | ~rxvt_selection (); |
373 | |
373 | |
374 | rxvt_term *term; // terminal to paste to, may be 0 |
374 | rxvt_term *term; // terminal to paste to, may be 0 |
375 | void *cb_sv; // perl callback, may be 0 |
375 | void *cb_sv; // managed by perl |
376 | |
376 | |
377 | rxvt_display *display; |
377 | rxvt_display *display; |
378 | Time request_time; |
378 | Time request_time; |
379 | Window request_win; |
379 | Window request_win; |
380 | Atom request_prop; |
380 | Atom request_prop; |
381 | |
381 | |
|
|
382 | private: |
382 | unsigned char selection_wait; |
383 | unsigned char selection_wait; |
383 | unsigned char selection_type; |
384 | unsigned char selection_type; |
384 | |
385 | |
385 | private: |
|
|
386 | char *incr_buf; |
386 | char *incr_buf; |
387 | size_t incr_buf_size, incr_buf_fill; |
387 | size_t incr_buf_size, incr_buf_fill; |
388 | |
388 | |
389 | void timer_cb (ev::timer &w, int revents); ev::timer timer_ev; |
389 | void timer_cb (ev::timer &w, int revents); ev::timer timer_ev; |
390 | void x_cb (XEvent &xev); xevent_watcher x_ev; |
390 | void x_cb (XEvent &xev); xevent_watcher x_ev; |