-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: rxvt-unicode-sixel
action: commit
revision:
path_from:
revision_from: 966f5f0fb411bda0bf58d90a92539275fa05cc24:
path_to:
revision_to:

git.thebackupbox.net

rxvt-unicode-sixel

git://git.thebackupbox.net/rxvt-unicode-sixel

commit 966f5f0fb411bda0bf58d90a92539275fa05cc24
Author: Emanuele Giaquinta <emanuele.giaquinta@gmail.com>
Date:   Thu Jan 19 23:13:19 2006 +0000

    *** empty log message ***

diff --git a/src/command.C b/src/command.C

index bc3f69736be39f728da495309ee680f4aad672db..

index ..5a0ab75b5edb3fa3d8694c40d49a568173fdaf90 100644

--- a/src/command.C
+++ b/src/command.C
@@ -466,7 +466,7 @@ rxvt_term::lookup_key (XKeyEvent &ev)
                 {
                     /* normal XTerm key bindings */
                   case XK_Insert:	/* Shift+Insert = paste mouse selection */
-                    selection_request (ev.time);
+                    selection_request (ev.time, Sel_Primary);
                     return;
 #if TODO
                     /* rxvt extras */
@@ -2161,8 +2161,12 @@ rxvt_term::button_release (XButtonEvent &ev)
           case Button2:
             if (IN_RANGE_EXC (ev.x, 0, width)
                 && IN_RANGE_EXC (ev.y, 0, height))  // inside window?
-              selection_request (ev.time);
-
+	      {
+		if (ev.state & ShiftMask)
+		  selection_request (ev.time, Sel_Clipboard);
+		else
+		  selection_request (ev.time, Sel_Primary);
+	      }
             break;

 #ifdef MOUSE_WHEEL

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 10:13:56 2024