From 3afc5a723e10313f956234cfd4251ba7a5a7e99c Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 2 Jan 2021 23:00:54 +0100 Subject: 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} --- selection.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'selection.h') 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); -- cgit v1.3