--- rxvt-unicode/src/screen.C 2011/02/12 00:30:01 1.373 +++ rxvt-unicode/src/screen.C 2011/02/21 07:41:03 1.376 @@ -3,7 +3,7 @@ *---------------------------------------------------------------------------* * * Copyright (c) 1997-2001 Geoff Wing - * Copyright (c) 2003-2007 Marc Lehmann + * Copyright (c) 2003-2007 Marc Lehmann * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -2742,18 +2742,6 @@ * will auto fallback to CUT_BUFFER0 * EXT: button 2 release */ - -static void -selection_cb (char *data, unsigned int len, rxvt_selection *rs, void *ptr) -{ - rxvt_term *term = (rxvt_term *)ptr; - - if (data) - term->paste (data, len); - delete rs; - term->selection_req = 0; -} - void rxvt_term::selection_request (Time tm, int selnum) NOTHROW { @@ -2767,7 +2755,7 @@ } else if (!selection_req) { - selection_req = new rxvt_selection (display, selnum, tm, vt, xa[XA_VT_SELECTION], selection_cb, this); + selection_req = new rxvt_selection (display, selnum, tm, vt, xa[XA_VT_SELECTION], this); selection_req->run (); } }