summarylogtreecommitdiffstats
path: root/paste-from-primary.patch
diff options
context:
space:
mode:
authorEric Foy2021-05-05 23:08:22 -0400
committerEric Foy2021-05-05 23:08:22 -0400
commitedb034029e8a462afb6ff771043200915cb8deb5 (patch)
treead61eb05aa147f44b44f40c0de095e443abe2476 /paste-from-primary.patch
downloadaur-edb034029e8a462afb6ff771043200915cb8deb5.tar.gz
urxvt with primary pasting
Diffstat (limited to 'paste-from-primary.patch')
-rw-r--r--paste-from-primary.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/paste-from-primary.patch b/paste-from-primary.patch
new file mode 100644
index 000000000000..22fe322d02df
--- /dev/null
+++ b/paste-from-primary.patch
@@ -0,0 +1,23 @@
+--- src/command.C.orig 2021-05-05 20:25:22.800894373 -0400
++++ src/command.C 2021-05-03 15:59:09.649181072 -0400
+@@ -788,18 +788,9 @@
+ }
+ }
+
+- if (ctrl && meta && (keysym == XK_c || keysym == XK_v))
++ if (ctrl && keysym == XK_v)
+ {
+- if (keysym == XK_v)
+- selection_request (ev.time, Sel_Clipboard);
+- else if (selection.len > 0)
+- {
+- free (selection.clip_text);
+- selection.clip_text = rxvt_wcsdup (selection.text, selection.len);
+- selection.clip_len = selection.len;
+- selection_grab (CurrentTime, true);
+- }
+-
++ selection_request (ev.time, Sel_Primary);
+ return;
+ }
+