diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-08-27 17:51:37 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-08-27 17:51:37 +0000 |
| commit | 0e89302da20d961dfb1553d0e10ad299823e045d (patch) | |
| tree | 55e1becd409028997d53ac923f0af6e0dfebe4b6 /terminal.h | |
| parent | Merge branch 'xcalloc-fix' into master (diff) | |
| parent | selection: don't initiate a paste when we're already pasting (diff) | |
Merge branch 'block-input-events-while-pasting' into master
Closes #101
Diffstat (limited to 'terminal.h')
| -rw-r--r-- | terminal.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -205,6 +205,8 @@ enum term_surface { TERM_SURF_BUTTON_CLOSE, }; +typedef tll(struct ptmx_buffer) ptmx_buffer_list_t; + struct terminal { struct fdm *fdm; struct reaper *reaper; @@ -226,7 +228,9 @@ struct terminal { float font_dpi; enum fcft_subpixel font_subpixel; - tll(struct ptmx_buffer) ptmx_buffer; + bool is_sending_paste_data; + ptmx_buffer_list_t ptmx_buffers; + ptmx_buffer_list_t ptmx_paste_buffers; enum cursor_origin origin; enum cursor_keys cursor_keys_mode; @@ -489,6 +493,8 @@ int term_destroy(struct terminal *term); void term_reset(struct terminal *term, bool hard); bool term_to_slave(struct terminal *term, const void *data, size_t len); +bool term_paste_data_to_slave( + struct terminal *term, const void *data, size_t len); bool term_font_size_increase(struct terminal *term); bool term_font_size_decrease(struct terminal *term); |
