summaryrefslogtreecommitdiffstats
path: root/chinese/xcin25/files
diff options
context:
space:
mode:
authorfoxfair <foxfair@FreeBSD.org>1999-07-22 04:40:35 +0000
committerfoxfair <foxfair@FreeBSD.org>1999-07-22 04:40:35 +0000
commitbe22d327caa23c2b2b6ec406715835fe8236263e (patch)
tree349877f7ca2a4db7707b34f587f5e2322f489a9d /chinese/xcin25/files
parent23dd5766945e1ea7ba8a5921e7a5d43113188ce7 (diff)
downloadFreeBSD-ports-be22d327caa23c2b2b6ec406715835fe8236263e.zip
FreeBSD-ports-be22d327caa23c2b2b6ec406715835fe8236263e.tar.gz
PR: 12733
Submitted by: Chia-liang Kao <clkao@CirX.ORG> Add a patch to avoid screen refreshing problem.
Diffstat (limited to 'chinese/xcin25/files')
-rw-r--r--chinese/xcin25/files/patch-ab29
1 files changed, 29 insertions, 0 deletions
diff --git a/chinese/xcin25/files/patch-ab b/chinese/xcin25/files/patch-ab
new file mode 100644
index 0000000..b14cc06
--- /dev/null
+++ b/chinese/xcin25/files/patch-ab
@@ -0,0 +1,29 @@
+--- src/xi.c.orig Wed Dec 9 22:43:13 1998
++++ src/xi.c Thu Jul 22 12:34:14 1999
+@@ -1056,19 +1056,25 @@
+
+ void switch_active_client( InmdState *state, Window cli_win )
+ {
++ int refresh = 1;
+ last_win = cli_win;
+
+ if ( ignore_cli_stat )
+ ignore_cli_stat = 0;
+ else
+ if ( state->_CurInMethod )
+- memcpy( &inmdstate, state, sizeof( inmdstate ) );
++ if(memcmp(&inmdstate, state, sizeof( inmdstate)))
++ memcpy( &inmdstate, state, sizeof( inmdstate ) );
++ else
++ refresh = 0;
+
+ if ( hide_xcin && ( EngChi || HalfFull ) )
+ Show_Xcin();
+ else if ( hide_xcin && !EngChi && !HalfFull )
+ XUnmapWindow( display, main_win );
+
++ if(!refresh)
++ return;
+ gotoxy( 0, MROW - 1 );
+
+ ClrShowArea( 0 );
OpenPOWER on IntegriCloud