aboutsummaryrefslogtreecommitdiff
path: root/selection.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-08-06 17:32:06 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-08-06 17:32:06 +0000
commit481a1cd6780233888fa1132242cb96f20ab14b73 (patch)
treebf508e829195de989fc44871767b8019804cd35d /selection.c
parentmain: make all polled FDs non-blocking (diff)
selection/input: triple click selects an entire row
Diffstat (limited to 'selection.c')
-rw-r--r--selection.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/selection.c b/selection.c
index f69338a4..7c3d4826 100644
--- a/selection.c
+++ b/selection.c
@@ -333,6 +333,14 @@ selection_mark_word(struct terminal *term, int col, int row, bool spaces_only,
selection_finalize(term, serial);
}
+void
+selection_mark_row(struct terminal *term, int row, uint32_t serial)
+{
+ selection_start(term, 0, row);
+ selection_update(term, term->cols - 1, row);
+ selection_finalize(term, serial);
+}
+
static void
target(void *data, struct wl_data_source *wl_data_source, const char *mime_type)
{