aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--CHANGELOG.md2
-rw-r--r--input.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9caf6c82..ee5b8da1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -80,6 +80,8 @@
* Rendering of CSD borders when `csd.border-width > 0` and desktop
scaling has been enabled.
* Failure to launch when `exec(3)’:ed with an empty argv.
+* Pasting from the primary clipboard (mouse middle clicking) did not
+ reset the scrollback view to the bottom.
### Security
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: