aboutsummaryrefslogtreecommitdiff
path: root/patches/xterm_copynpaste_hack.patch
blob: b301142420c170d3e9ca401cb0a8ef0e79adaf4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- a/charproc.c
+++ b/charproc.c
@@ -9049,6 +9049,8 @@
            Shift <KeyPress> Next:scroll-forw(1,halfpage) \n\
          Shift <KeyPress> Select:select-cursor-start() select-cursor-end(SELECT, CUT_BUFFER0) \n\
          Shift <KeyPress> Insert:insert-selection(SELECT, CUT_BUFFER0) \n\
+         Shift <KeyPress> Select:select-cursor-start() select-cursor-end(PRIMARY, CLIPBOARD, CUT_BUFFER0) \n\
+         Shift <KeyPress> Insert:insert-selection(PRIMARY, CLIPBOARD, CUT_BUFFER0) \n\
 "
 	},
 #if OPT_MAXIMIZE
@@ -9099,7 +9101,7 @@
      ! @Num_Lock Ctrl <Btn2Down>:popup-menu(vtMenu) \n\
           ~Ctrl ~Meta <Btn2Down>:ignore() \n\
                  Meta <Btn2Down>:clear-saved-lines() \n\
-            ~Ctrl ~Meta <Btn2Up>:insert-selection(SELECT, CUT_BUFFER0) \n\
+            ~Ctrl ~Meta <Btn2Up>:insert-selection(PRIMARY, CLIPBOARD, CUT_BUFFER0) \n\
                 !Ctrl <Btn3Down>:popup-menu(fontMenu) \n\
            !Lock Ctrl <Btn3Down>:popup-menu(fontMenu) \n\
  !Lock Ctrl @Num_Lock <Btn3Down>:popup-menu(fontMenu) \n\
@@ -9128,7 +9130,7 @@
 	    False,
 	    "default",
 "\
-                         <BtnUp>:select-end(SELECT, CUT_BUFFER0) \n\
+                         <BtnUp>:select-end(PRIMARY, CLIPBOARD, CUT_BUFFER0) \n\
                        <BtnDown>:ignore() \
 "
 	}