*** empty log message ***
authorayin <ayin>
Thu, 19 Jan 2006 23:14:39 +0000 (23:14 +0000)
committerayin <ayin>
Thu, 19 Jan 2006 23:14:39 +0000 (23:14 +0000)
doc/rxvt.1.pod
src/rxvt.h
src/screen.C

index 56cd3c6f2a4da2c3dbd7f403a7025d4e8caad277..7e4781f8e491bfdfe01c0746b2ce3b4d0aaa596c 100644 (file)
@@ -1473,7 +1473,7 @@ Project Coordinator (Changes 1.0 -)
 
 =item Emanuele Giaquinta L<< <e.giaquinta@glauco.it> >>
 
-Pty/tty/utmp/wtmp rewrite, lots of random hacking and bugxifing.
+Pty/tty/utmp/wtmp rewrite, lots of random hacking and bugfixing.
 
 =back
 
index 5db7c1ac0a36a3c573e04ce62b3fa84d42d512f2..c090b81e0d070eb02c46ff0a7bcadc8b7d718bd4 100644 (file)
@@ -1471,7 +1471,7 @@ struct rxvt_term : zero_initialized, rxvt_vars {
   void selection_check (int check_more);
   void selection_paste (Window win, Atom prop, bool delete_prop);
   void selection_property (Window win, Atom prop);
-  void selection_request (Time tm);
+  void selection_request (Time tm, int selnum);
   int selection_request_other (Atom target, int selnum);
   void selection_clear ();
   void selection_make (Time tm);
index d770260ef66a24a66cc82f585e5e420f314baec2..37f3558e454eddbcf7490a29dbe65b31a2df5700 100644 (file)
@@ -2804,8 +2804,13 @@ rxvt_term::selection_property (Window win, Atom prop)
  * EXT: button 2 release
  */
 void
-rxvt_term::selection_request (Time tm)
+rxvt_term::selection_request (Time tm, int selnum)
 {
+/* After making a selection with selection_make this function will always
+ * return the internal selection, which is not correct IMO, now much more since
+ * I added the selnum parameter.
+ */
+#if 0
   if (selection.text)
     { /* internal selection */
       char *str = rxvt_wcstombs (selection.text, selection.len);
@@ -2814,24 +2819,20 @@ rxvt_term::selection_request (Time tm)
       return;
     }
   else
+#endif
     {
-      int i;
-
       selection_request_time = tm;
       selection_wait = Sel_normal;
 
-      for (i = Sel_Primary; i <= Sel_Clipboard; i++)
-        {
 #if X_HAVE_UTF8_STRING
-          selection_type = Sel_UTF8String;
-          if (selection_request_other (xa[XA_UTF8_STRING], i))
-            return;
+      selection_type = Sel_UTF8String;
+      if (selection_request_other (xa[XA_UTF8_STRING], selnum))
+       return;
 #else
-          selection_type = Sel_CompoundText;
-          if (selection_request_other (xa[XA_COMPOUND_TEXT], i))
-            return;
+      selection_type = Sel_CompoundText;
+      if (selection_request_other (xa[XA_COMPOUND_TEXT], selnum))
+       return;
 #endif
-        }
     }
 
   selection_wait = Sel_none;       /* don't loop in selection_paste () */