diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-01-02 22:00:54 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-01-04 18:48:41 +0000 |
| commit | 3afc5a723e10313f956234cfd4251ba7a5a7e99c (patch) | |
| tree | 6b5b3eaf09fafc513994124bafe016ba7138fafc /selection.h | |
| parent | selection: don’t finalize selection when starting a word/row-based selection (diff) | |
selection: use selection_start() to initialize word/row-based selection
This removes the selection_mark_word() and selection_mark_row()
functions. To start a word/row-based selection, use selection_start()
with SELECTION_SEMANTIC_{WORD,ROW}
Diffstat (limited to 'selection.h')
| -rw-r--r-- | selection.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/selection.h b/selection.h index db83ef83..21e983e8 100644 --- a/selection.h +++ b/selection.h @@ -11,7 +11,8 @@ extern const struct zwp_primary_selection_device_v1_listener primary_selection_d bool selection_enabled(const struct terminal *term, struct seat *seat); void selection_start( struct terminal *term, int col, int row, - enum selection_kind kind, enum selection_semantic semantic); + enum selection_kind kind, enum selection_semantic semantic, + bool spaces_only); void selection_update(struct terminal *term, int col, int row); void selection_finalize( struct seat *seat, struct terminal *term, uint32_t serial); @@ -25,12 +26,6 @@ bool selection_on_rows(const struct terminal *term, int start, int end); void selection_view_up(struct terminal *term, int new_view); void selection_view_down(struct terminal *term, int new_view); -void selection_mark_word( - struct seat *seat, struct terminal *term, int col, int row, - bool spaces_only, uint32_t serial); -void selection_mark_row( - struct seat *seat, struct terminal *term, int row, uint32_t serial); - void selection_clipboard_unset(struct seat *seat); void selection_primary_unset(struct seat *seat); |
