--- rxvt-unicode/src/command.C 2006/01/19 16:22:12 1.272 +++ rxvt-unicode/src/command.C 2006/01/19 23:13:19 1.273 @@ -466,7 +466,7 @@ { /* 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 @@ 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