summaryrefslogtreecommitdiffstats
path: root/meta/recipes-sato/rxvt-unicode/rxvt-unicode-9.11/xwc.patch
blob: 16efeef49f7e867f23e10e83842b63d15b1e44a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Upstream-Status: Pending

diff -ruN rxvt-unicode-9.10-orig//src/screen.C rxvt-unicode-9.10/src/screen.C
--- rxvt-unicode-9.10-orig//src/screen.C	2011-04-19 13:34:01.327664984 +0800
+++ rxvt-unicode-9.10/src/screen.C	2011-04-19 13:34:47.037665001 +0800
@@ -3152,7 +3152,7 @@
       return false;
     }
 
-#if 0
+#if HAVE_XWC
   XTextProperty ct;
 
   if (XwcTextListToTextProperty (dpy, &selection.text, 1, XStringStyle, &ct) >= 0)
@@ -3734,9 +3734,11 @@
         }
       else
 #endif
+#ifdef HAVE_XWC
       if (XwcTextListToTextProperty (dpy, &cl, 1, (XICCEncodingStyle) style, &ct) >= 0)
         freect = 1;
       else
+#endif
         {
           /* if we failed to convert then send it raw */
           ct.value = (unsigned char *)cl;