From owner-freebsd-ports Wed Jul 21 3:11:12 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 63F6D14E95 for ; Wed, 21 Jul 1999 03:11:09 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id DAA46278; Wed, 21 Jul 1999 03:10:07 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from genius.cirx.org (sj235-74.dialup.seed.net.tw [139.175.235.74]) by hub.freebsd.org (Postfix) with ESMTP id 5C7D714F6A for ; Wed, 21 Jul 1999 03:01:14 -0700 (PDT) (envelope-from clkao@genius.cirx.org) Received: (from clkao@localhost) by genius.cirx.org (8.9.3/8.9.1) id RAA08331; Wed, 21 Jul 1999 17:59:45 +0800 (CST) (envelope-from clkao) Message-Id: <199907210959.RAA08331@genius.cirx.org> Date: Wed, 21 Jul 1999 17:59:45 +0800 (CST) From: clkao@CirX.ORG Reply-To: clkao@CirX.ORG To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/12733: Patch to xcin 2.3 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 12733 >Category: ports >Synopsis: Patch to xcin 2.3 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Jul 21 03:10:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Chia-liang Kao >Release: FreeBSD 4.0-CURRENT i386 >Organization: CirX >Environment: FreeBSD genius.cirx.org 4.0-CURRENT FreeBSD 4.0-CURRENT #1: Sun Jun 27 22:53:51 CST 1999 root@career.ntu.edu.tw:/usr/src/sys/compile/GENIUS i386 >Description: This patch was submitted to the xcin team, but the release including this patch never came out and the development bumped to a new tree. This patch avoids blinking of the status line when changing IC. >How-To-Repeat: >Fix: Please add the following patch to patches/patch-ab --- src/xi.c.orig Wed Jul 21 16:38:43 1999 +++ src/xi.c Wed Jul 21 17:10:26 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 ); >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message