aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/open-motif/files/patch-lib_Xm_XmRenderT.c
blob: 84b92bd900b78c758f4af217ae48c7d9d7859bdb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- lib/Xm/XmRenderT.c.orig	2017-03-27 15:24:31.000000000 -0700
+++ lib/Xm/XmRenderT.c	2023-12-04 15:42:22.406098000 -0800
@@ -2091,10 +2091,9 @@
 						  static int count_rend=0, num_rend;
 						  num_rend = GetSameRenditions(rend_cache, rend, count_rend);
 
-						  if (num_rend>=0)
+						  if(num_rend >= 0 && (display == _XmRendDisplay(rend_cache[num_rend]))) {
 							  _XmRendXftFont(rend) = _XmRendXftFont(rend_cache[num_rend]);
-						  else
-						  {
+						  } else {
 #endif
 		    _XmRendPattern(rend) = FcPatternCreate();
 		    if (_XmRendFontName(rend))