On Tue, Nov 05, 2013 at 12:09:21PM +0100, Michael Traxler wrote:
> Hello Emanuele,
>
> I normally use urxvt 9.16 (obs://build.opensuse.org/utilities) and 9.15
> (standard OpenSuSE 12.3). But I also tried it with urxvt 9.19. The same
> happens with this version.
You can try to debug the problem using the attached patch. Compile
rxvt-unicode-9.19 with it, run urxvt redirecting stderr to a file and
paste the primary selection. The file should contain some debug
information.
Emanuele
diff --git a/src/rxvttoolkit.C b/src/rxvttoolkit.C
index b5d2c12..8def6c1 100644
--- a/src/rxvttoolkit.C
+++ b/src/rxvttoolkit.C
@@ -1064,6 +1064,13 @@ rxvt_selection::request (Atom target, int selnum)
if (XGetSelectionOwner (display->dpy, sel) != None)
{
+ if (selection_type & Sel_UTF8String)
+ fprintf(stderr, "XConvertSelection target: UTF8_STRING\n");
+ else if (selection_type & Sel_CompoundText)
+ fprintf(stderr, "XConvertSelection target: COMPOUND_TEXT\n");
+ else
+ fprintf(stderr, "XConvertSelection target: STRING\n");
+
XConvertSelection (display->dpy, sel, target, request_prop,
request_win, request_time);
x_ev.start (display, request_win);
@@ -1083,6 +1090,8 @@ rxvt_selection::handle_selection (Window win, Atom prop, bool delete_prop)
unsigned long bytes_after;
XTextProperty ct;
+ fprintf(stderr, "SelectionNotify property: %lu\n", prop);
+
// check for failed XConvertSelection
if (prop == None)
{
_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/rxvt-unicode