aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-01-11 19:26:49 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-01-11 19:26:49 +0000
commit29c31054a1a4dc2b51a486829830b47ef5e8d772 (patch)
tree1f87abb828d3dc04962c6dbde09b4fc5c26dd8ac /input.c
parentMerge branch 'wl-output-version-4' (diff)
input: reset view when pasting from primary
We’re already doing this for keyboard input, and regular clipboard pastes.
Diffstat (limited to 'input.c')
-rw-r--r--input.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/input.c b/input.c
index ab177bf8..6013634e 100644
--- a/input.c
+++ b/input.c
@@ -145,6 +145,7 @@ execute_binding(struct seat *seat, struct terminal *term,
case BIND_ACTION_PRIMARY_PASTE:
selection_from_primary(seat, term);
+ term_reset_view(term);
return true;
case BIND_ACTION_SEARCH_START: